A module constructed by Modular.module is collection of components and controllers. You can register a component class or a controller class into a module then you can use your component in template.
var myModule = UIExtension.modular.module('my-module', []);
class MyComponent
extends UIExtension.
Component {
static getName() {
return 'my-component';
}
}
myModule.registerComponent(MyComponent);
fragments: [{
target: 'home-tab-group-hand',
action: UIExtension.UIConsts.FRAGMENT_ACTION.APPEND,
template: '<my-module:my-component></my-module:my-component>'
}]
})
- See also
- Modular::module