The components module provides a way to add logic to the application.
It consists out of the Components class acting as a repository containing all components
and the Component class providing a abstract base component which should be extended. A small example:
exportclass MyComponent extends Component {
public init(){}
public boot(){}
}
Components.register('my', MyComponent);
The components module.
The components module provides a way to add logic to the application. It consists out of the
Componentsclass acting as a repository containing all components and theComponentclass providing a abstract base component which should be extended. A small example:export class MyComponent extends Component { public init(){} public boot(){} } Components.register('my', MyComponent);