Multiple * Window * An application using Angular

We are developing a sophisticated web application that runs in multiple browser windows. Use AngularJS

(note that it should look / feel like one application - it just spreads in several browser windows)

Javascript allows the parent window to reference objects in other windows while the parent maintains links to other windows. Access to these objects can be obtained either using your own accessories, or, for example, using jQuery.

Is a multi-window application something that Angular did before? How can such an application be scalable?

(I saw a large 'angular -app' reference app , which is a template for large-scale applications (if I could only get it to work!), But didn’t find anything when using multiple browser windows ...

+8
angularjs
source share
1 answer

This is probably not the answer you are looking for, but from my w / AngularJS experience, it seems that you are looking in an anti-angular anti-template. In particular, angular is large in scope - therefore, the controller and view will only “know” about their things. Any other controllers / views on one page or other windows, etc. They will not necessarily refer to each other. Rather, the application on the page will have $ rootScope, which can serve as the w / $ emit () message bus, on $ ().

So, perhaps look at it as loosely coupled parts with a centralized message bus that determines which windows receive which events. Then each part (application / controller / view) simply responds to these events.

Note. We had a test application that simulated several UIWebViews in a mobile application, placing each angular application in iFrames and successfully using this approach. Very sophisticated, very verifiable. NTN

+6
source share

All Articles