Re: [AngularJS] Injecting header token with all REST API calls in Angular2

2017-01-20 Thread Kyle Thomas
Check out this tutorial/blog: http://jasonwatmore.com/post/2016/08/16/angular-2-jwt-authentication-example-tutorial On Fri, Jan 20, 2017 at 2:36 PM, Anil Mathew wrote: > Hi, > >I am using Angular2 and I am trying to find a way to send some header > to the server

[AngularJS] Injecting header token with all REST API calls in Angular2

2017-01-20 Thread Anil Mathew
Hi, I am using Angular2 and I am trying to find a way to send some header to the server for every REST API call? I am trying to avoid writing code to set the header for each API call though. Can anyone please help me how to do this? Thanks -- You received this message because you