new exports(descriptor)
The class constructor.
The only param this method gets is a constructor with all the mandatory and optional component data. Component will receive the same descriptor as create method param.
This method will call the "create" method before registering the component into the reactive module. This way any component can add default selectors and events.
Parameters:
Name | Type | Description |
---|---|---|
descriptor |
descriptor | data to create the object. |