Github: Angular:: https://github.com/djrabi007/angular-...
1. Write XXInterceptor Service......
write Service....
ng g s BasicAuthHttpInterceptorService
1.1. Add Interceptor in app.module.ts
2. Store Data in "sessionStorage" during Login at XXService...
• Login- use Header during service call
• Adduser- No Need to send Header (No Need to send username/password)
3. Testing
3.1. direct Click on "Person" Link - Will not give Data!!!
3.2. Login-----navigate"Person" Link - Data will come!!!