Closed dredzone closed 11 years ago
Yes, context loads all the modules and there is no lifecycle management done by contexts. But the controllers (DOMController and URLController) take care of lifecycle management of UI components (or technically any object with activate(), deactivate() methods).
This is by design since it is the Controllers who know the scope (parent DOM element) on to which the UIComponents are to be attached. When a new UIComponent is activated, deactivation happens within that scope only.
Seems like its not possible to stop module, and context instance has no knowledge of what modules are running.