the variables have all been declared judiciously, how can i pass the value gotten from the first observable function which is this.acNum as the parameter to resolve the second observable function as shown in ngOnInit, when i do this, it seems the value of this.acNum is actually empty but it shows up in my component html template.
ngOnInit() {
this.getFQ(8030495);
this.getHS(this.acNum);
}
getFormQ(formqid){
this.getFQService.GetFQ(fqid).subscribe({
next: fQDetails => {
this.fQDetails = fQDetails;
//populating app details
this.acNum = this.fQDetails["data"]["data1"];
this.appName = this.fQDetails["data"]["data1"];
},
error: err=> {
this.errorMessage = err;
}
})
};
getHSC(hsc){
this.gethscservice.GetHsC(hsc).subscribe({
next:HScResp=>{ this.HScResp = HScResp;
console.log(HScResp["data"]);
},
});
};
thanks for the help.