I wanted to know if you guys can now use a combination of @Input + ngOnChanges () or something similar inside the component.
Basically, I set the logged: boolean variable to my AppComponent, and in my template, I:
<router-outlet></router-outlet> <login [logged]="logged"></login>
What I want is to see that the variable is logged inside the component in the socket router, so I only do this here when the registered value is true.
I tried putting <router-outlet [logged]="logged"></router-outlet> , but this will not work, and using the variable in the service does not seem to match the ngOnChanges () chat.
Does anyone have an idea? Thanks!
source share