TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mandar Shinde
NA
423
114.8k
Regarding getting retain values in between two components.
May 21 2019 1:58 AM
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.
Reply
Answers (
3
)
Regarding getting error related to StaticInjector.
Force javascript to execute function and its sub function