Overview
The component config is a Javascript dictionary that contains all the information necessary to construct and configure a component.
Constructor
Constructor - a function to construct the component
export function constructor(config, $val, $url){
this.config = config;
}
The function named "constructor" is an object constructor that takes a config as a parameter. The config should be set on the object itself as above. The options is an additional dictionary passed in by the platform that specifies additional options on the component. For simple components, this can usually be ignored.
The constructor is called using the davinci dependency injection framework. That is, the parameters are identified by name, and if available when the constructor is called, will be called with the corresponding service or object.
Lifecycle Methods
lifecycle methods - these are a set of functions that the platform uses to manage the component