#Wait for API call to finish in Route Guard

9 messages · Page 1 of 1 (latest)

ionic perch
#

Don't .subscribe in a Service.

#

Show the whole Service

soft cape
#

Would I map instead?

#
this.getBorrowerActions$: Observable<string[]> = this.http.get<string[]>(
            `myapicall`
        );
ionic perch
#

g!toh @soft cape You would build the tutorial apps from the Angular Guide so you know some of what Angular can do and how it does it.

wild shadowBOT
#

@soft cape The place we recommend starting your Angular journey is with the Tour of Heroes tutorial, located here https://angular.io/tutorial.

soft cape
#

???

#

There are no examples in the tutorial that match this case

ionic perch
#

The tutorials definitely show you how to use Observables in Angular.