mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
d9f17dca83
Initial implementation of the service compositor, which is responsible for registering components which follow the provider-aggregator-decorator pattern as named services within Angular. WTD-518. |
||
---|---|---|
.. | ||
lib | ||
src | ||
test | ||
README.md |
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:
- 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
- Resolving extensions. Any scripts which provide implementations for
extensions exposed by bundles are loaded, using Require.
Sources in
src/resolve
- 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
- 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