/app
- app.component.ts
- app.component.html (hide/show: menu bar)
- app.global.service.ts (Public varible LoginSuccess:boolean)
- m
As Saxsa, the key point is to define your service provider within the application injector and not at each component level. Be careful not to define the service provider twice... Otherwise you will still have separate service instances.
This way you will be able to share the same instance of the service.
This behavior occurs because of hierarchical injectors of Angular2. For more details, you could have a look at this question: