Instantly share code, notes, and snippets.

@wKoza /get_header.ts Secret
Created Aug 10, 2017

Embed
What would you like to do?
const headers = new HttpHeaders().set('Authorization', 'my-auth-token');
Observable<Article[]> article$ = this.http.get<Article[]>('api.learn-angular.fr/articles', {headers});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment