I am developing a website that can be divided into several main pages. These pages can be considered isolated from each other, except that they use session data (i.e., session ID and login name).
At the beginning, I was going to build the site as a SPA using ng-view (i.e. turn pages into AngularJS views). But then I do not see any advantages for my site, which will be implemented in this way. And it will take extra time and effort to get it to support SEO ( Creating AJAX Crawlable Applications ).
Transitioning with an approach that offers no benefits and even creates additional workload does not seem to be too smart. So I thought to myself: why not make the main pages of my site separate AngularJS applications. The parts of the site that need to be indexed by search engines are just the initial screens of some of these applications, so I wonβt need to do extra work for SEO. (Note: The initial screens are displayed by the Django server with data to be crawled by search engines, so they are not spaces.)
For each of the applications, it may or may not have its own set of partitions, depending on the requirements for it.
Example:
mydomain.com/item_page/1234 (load "item" app) mydomain.com/dashboard (load "dashboard" app) mydomain.com/account (load "account" app and default to "tab_1" view) mydomain.com/account
This is my only random thought, and I have not seen AngularJS examples that consist of several AngularJS applications. I'd like to know:
- Is it possible to use several corner applications for one site? What are some reservations I should be aware of? Is there any example of a wildlife site that uses this approach?
- If possible, how do I share session data between applications?
Please note that this post applies to multiple AngularJS applications for the same site, not multiple AngularJS applications on the same page.
source share