rlopez1j / foodhat

Creating foodhat using node.js,express and socket.io
Apache License 2.0
1 stars 0 forks source link

home page rendering issue with navbar #4

Closed rlopez1j closed 6 years ago

rlopez1j commented 6 years ago

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.

image

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: image