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:

  1. 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?

  2. 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

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -