I have a single-page application.
the body is a router-view, I can route in it, it can route to a, b, c components.
you see, if in b component, b and header are the same level components.
How can I in b component to give notice to header component?
the case is:
in header, it can popup a modal to login, then in its data have is_login, user_data properties, through those header can display user info and other buttons. if I login in the header, I can easily store the is_login and user_data to Cookie or localStorage.
but if I am login by the modal of b component, I can store the is_login
and user_data to Cookie or localStorage too, but how can I let the header know the is_login and user_data is updated in Cookie or localStorage? then it can update the view.
