+ 1

I have An Angular Component called Menu And Another Is Home User When I come to home user via login the menu component wanted to

AngularJs problem I have An Angular Component called Menu And Another Is Home User When I come to home user via login the menu component wanted to be refresh bcz from starting it have a button of login signup but after login that having a name of logined user but it doesnt refresh the page after login Can Anyone help???

9th May 2019, 7:18 AM
Shahil Joshi
Shahil Joshi - avatar
1 ответ
+ 1
How are you keeping track of the login? A really good way is with a redux storeband rxjs. You can use observable streams from the store and have your components subscribe to them. In the view you would use an async pipe to handle the subscription and unsubscription and then it would just watch the store for any changes and update the view of the component accordingly.
12th May 2019, 5:29 AM
Adam
Adam - avatar