Skip to content Skip to sidebar Skip to footer

The Nested Modules In Angularjs

Background I have N angular modules. One of them it is the root container that bootstrapped on and exists whole page life cycle. All other N-1 are games that nested inside of the

Solution 1:

Oh! I just realized you idea. Actually you have incorrect understanding of Angular building components.

  1. Angular module is just a logical wrapper for controllers, directives, factories and etc. For example you would have module 'main' and several submodules 'moduleA' and 'moduleB'

They doesn't have any relation to the modules on a markup, it's just a logical unit in your app.

  1. In your example you hopefully mean scopes. You may have several scopes in your app and they can be inhireted or have children. And in this case you can load or unload entity that created the scope

Look at the official developer guide for more details.

Post a Comment for "The Nested Modules In Angularjs"