I installed State Manager to track user login status based on this answer here: Change Navbar based on login status
However, I would like to move on to the next step and have not only update the navigation in accordance with the state, but also the main template itself. I basically got this job, so when you click on the login button, it will show you "welcome that you are logged in." However, if you log out and try to log in again, it simply displays a blank screen, as if it were redrawing the direction of the route incorrectly. Here's the JSFiddle with my problem. Pay attention to what happens when you click on login / logout, and then log in for the 2nd time. A welcome message is not displayed.
Here is my index template:
{{render navbar}}
{{authState}}
{{#if isAuthenticated}}
{{outlet}}
{{else}}
{{render login}}
{{/if}}
I see that "authState" is correct, but the "exit" does not appear the second time I log in ...
Here is the full jsfiddle:
http://jsfiddle.net/Benmonro/HmJyu/1/
EXPLANATION
@ham , :
, , , isAuthenticated, , {{outlet}}, , {{render login}}, . , {{outlet}} w/ ...