MomentumJS
MomentumJS is a structural framework for advanced web apps.
v0.0.1 — Proof of Concept
Usage
var mn=
Reference
mn.module
The mn.module
is a global place for creating and registering Momentum modules. All modules (momentum core or 3rd party) that should be available to an application must be registered using this mechanism.
Module
A module is a collocation of services and configuration information. Module is used to configure the injector
.
// Create a new modulevar myModule= mn; // register a new servicemyModulevalue'appName' 'MyCoolApp'; // configure existing services inside initialization blocks.myModule;
Then you can create an injector and load your modules like this:
var injector= mn