I am storing the backend data in localstorage. I have created two component 
i.e parent component and child component. The parent component send a Array 
of objects for dropdown  element present in child component which is as 
below

response:{selected_id:1, dropdown: [{id:1,name:"all item"},{id:2, 
name:"item1"}].}

I have used Input for sending this array from parent to child. In parent 
component i have attached SSE event which tells me to update the 
localstorage object. I have attached this SSE event in parent initialization
below is the code :

const fx = new EventSource(AppConfiguration.EventSource + this.user.id);
fx.onmessage = (event) => {

this.updateProducts()
};


Problem here i am facing is if I open this component in two tab and trying 
to change the dropdown in one tab my expectation is since i am using SSE 
and Other tab will also get notification from server. other tabview also 
select the same dropdown item. But its working on a same tab not on others 
tab.




-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to