When a user is in the homepage, and they click on another link in the nav-bar, and click back on the home link, the home component view does not get rendered.
ngOnInit() still gets fired, and all objects are available, but the view does not get loaded into the dom.
the we out here! message is a console log from ngOnInit().
the user object is still available, which has also been logged in the console as no refresh: [Object].
An interesting note: the "Home" link is shown as active even when the active link is another component:
When a user is in the homepage, and they click on another link in the nav-bar, and click back on the home link, the home component view does not get rendered.
ngOnInit()
still gets fired, and all objects are available, but the view does not get loaded into the dom.the
we out here!
message is a console log fromngOnInit()
. the user object is still available, which has also been logged in the console asno refresh: [Object]
.An interesting note: the "Home" link is shown as active even when the active link is another component: