angularjs - Share Angular2 Service across multiple windows -
my website built angular2. imagine big dashboard lot of modules. information multiple modules required @ same time - therefore want allow users open module in new window. real-world example video container of hangout.
from research there 2 ways this:
i open route of selected ng-component in new window. result angular reinit services. keep data consistent need find way sync instances. maybe kind of service writes attributes localstorage?
this somehow way goldenlayout implemented popouts. init component in window , hide - open new window (b) , pass copy (css, html, data) of component it. mean need sync mirrored component, not sure if architecture.
which way go solve described problem , there more elegant solutions?
Comments
Post a Comment