@edanweis wrote:
I am trying to locally store a username by updating
this.usernameproperty of a global (singleton?)Userservice component, which is rendered as{{username}}.But when I update
this.usernamefrom another component, the change is not reflected in my{{username}}template tag upon entering a new page (once the user logs in). I have includedUserin the array of@Appproviders to give it global scope.Could I be instancing a new User service, rather than modifying it? I've tried Angular 2 singleton service and other tutes, without luck.
Posts: 1
Participants: 1