Hello,

i used a service to Login. This service have a field named loggedIn. Now i 
wan't to use this field in different modules no matter where the module is. 

In all Module i need the field i want to get the same data (singleton). 

Now i have simplified following 

<header>
  <navigation></navigation>
  <login></login>
</header>

I used in navigation and login the same constructor.

constructor(private loginService: LoginService)


I want to change the navigation options if the user is logged in and another 
options if the user logged out. 


In the modul login i set the the login

this.loginService.loggedIn = false;

this.loginService.loggedIn = true;

and it works here fine with ngIf.

But there is no binding to navigation. there is only the initial-data.


Sorry for my bad english. I hope you understand my Problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to