angular - Chainig functions with observables fails to retrieve data -
am performing 1 function after has completed
this have tried
ngoninit () { this.subscriptions.add( this.route.params .subscribe(params => { this.truckdetails = params; this.getchecklistcategory(); }) ) } getchecklistcategory(){ this._checklistcategoryprovider.getall() .subscribe( res=>{ console.log("got data here") //this never executed ///this.checklists = res //this outputs data in frontend }, err=>{ console.log("error here")//this not executed } ) } the second function never executed check both res , error
where going wrong?
wiki
Comments
Post a Comment