Hi All,
I am new angular, how to make method processing as sequential. Based on api
response, i need to navigate to different component.
In this case, how to make process sequential.
let responseObj = null;
let path = null;
buttonClick(){
method1();
router.navigateByURL(path);
}
method1(){
responseObj = api call();
method2(responseObj);
}
method2(responseObj){
path = processing - > responObj;
}
Thanks,
Siva
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/d87ce262-82f9-490a-84d0-326ed6582229%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.