Mimeo Class
This is the entry point for the Mimeo framework. Create modules or bootstrap an injectable.
Methods
bootstrap
(
-
injectableName -
[parameters]
Parameters:
-
injectableNameString -
[parameters]Object optional multiplePassed through to injectable
Example:
mimeo.module('example', [])
.component('greeting', () => (name) => console.log('Hi, ' + name);
mimeo.bootstrap('greeting', 'John')
//=> "Hi, John"
module
(
Module
-
name -
[dependencies]
In Mimeo, modules are top-level constructs that own and manage injectables. Modules can depend on other module and will be instantiated in dependency-order.
Parameters:
-
nameStringName of the module
-
[dependencies]Array optionalArray of module names that this module depends on
Returns:
Example:
mimeo.module('example', [])
.component('greeting', () => (name) => console.log('Hi, ' + name);
