ngx-restangular
ngx-restangular copied to clipboard
set default headers after login
Hi, new to ngx-restangular
would like to ask, can we set the default headers (etc: {authorization: 'Bearer xxx'})
after user login?
for the example provide in README.md, it initial default headers in app.module.ts
thanks for advices
Hello lordzpipo,

You can use setDefaultConfig() in each and every page where you've initialized Restangular.
I solved this issue. I hope this will help you.