Answer the question
In order to leave comments, you need to log in
How to make a query sequence in Angular?
ngOnInit() {
this.addressesService.getRegions().subscribe((resp) => {
this.regions = resp.data.items;
this.loading = true;
}, (error) => {
console.log(error);
});
this.addressesService.getObj().subscribe((resp) => {
this.district = resp.data;
}, (error) => {
console.log(error);
});
// other code
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question