Dear All,
I have created one component with name Global.ts in Angular 6. I have some variables like LoginUserID and its related some information. I have set data to these variables in my navbar component. What I want is this data which is set in navbar component, should get access in all remaining component.
I am not able to get this data in multiple component because it gets vanished if I am trying to access it from other component.
How can I retain data in between multiple components.
Any sugestions will be acceptable.
Thanking you in advanced.

Sanwar RanwaRank #23 · 44.7K reputationPosted May 20, 2019, 10:07 PM EDT
Mandar ShindeRank #4,584 · 336 reputationPosted May 21, 2019, 2:30 AM EDT
Mandar ShindeRank #4,584 · 336 reputationPosted May 23, 2019, 12:33 AM EDT