DEV Community

Discussion on: Angular adding a token to each API request

Collapse
 
mohsen2014 profile image
Mohsen Emami

Thanks, @dailydevtips1
I have an issue with the inspector in angular. I use angular-aws-amplify to fetch the token.
angular-aws-amplify has a method that returns an observable. but I don't know how can use an observable method in the inspector. do you know?

Collapse
 
dailydevtips1 profile image
Chris Bongers

Hey Mohsen,

What do you mean with inspector in angular, like a visual studio plugin or chrome plugin?

Normally you should be able to subscribe to an observable anyway.

Like amplify.subscribe(res => { console.log(res) });