In ng-resource, how do I use parameters in the header? After logging in using my REST api, the user gets a token, and this token is needed in every request.
This gist illustrates better how I want to do it: https://gist.github.com/Lobosque/903a54b8e3ba561e5e6f But if anyone have a better method of doing this to repeat less code, would be even better. Thank you! -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
