here my scenario i have 2 methods calling apis
-
getData(param)
-
getAnotherData(resp from get data);
The below method calls the first method
`
this.service.getData(param).subscribe(res => {
this.variable = res;
// here based on the first response i will call the second api
this.service.getAnotherData(this.variable['data]).subscribe(res2 =>
// here i will get response as "started" here my issue is when response is not **"started"** i have to
call this api until i get the response as **started** up to 1 minute i have to call this api if
didnt get message as started
)})`
so how can i achieve this ?
from Unable to call the nested function with timer until met condition using angular
No comments:
Post a Comment