openmct/platform/framework
Victor Woeltjen 7388f4e8bf [Framework] Add documentation to framework component
Add an overview of the stages of framework execution
at the bundle level. WTD-518.
2014-11-05 12:25:37 -08:00
..
lib [Framework] Add angular-route 2014-11-04 14:38:49 -08:00
src [Framework] Refactor source folder 2014-11-05 12:18:19 -08:00
test [Structure] Add comments to temporary files 2014-10-31 09:49:09 -07:00
README.md [Framework] Add documentation to framework component 2014-11-05 12:25:37 -08:00

Framework-level components for Open MCT Web. This is Angular and Require, with an extra layer to mediate between them and act as an extension mechanism to allow plug-ins to be introduced declaratively.

Implementation Notes

The framework layer is responsible for performing a four-stage initialization process. These stages are:

  1. Loading definitions. JSON declarations are loaded for all bundles which will constitute the application, and wrapped in a useful API for subsequent stages. Sources in src/load
  2. Resolving extensions. Any scripts which provide implementations for extensions exposed by bundles are loaded, using Require. Sources in src/resolve
  3. Registering extensions. Resolved extensions are registered with Angular, such that they can be used by the application at run-time. This stage includes both registration of Angular built-ins (directives, controllers, routes, and services) as well as registration of non-Angular extensions. Sources in src/register
  4. Bootstrapping. JSON declarations are loaded for all bundles which will constitute the application, and wrapped in a useful API for subsequent stages. Sources in src/bootstrap