0.0.0-development
Component class.
(Object
= {}
)
Name | Description |
---|---|
$0.el any
(default null )
|
|
$0.name any
(default 'anonymous' )
|
|
$0.components any
(default {} )
|
(Object
= {}
)
Options.
const rootComponent = new Component({ el: '#root' })
DOM element the instance is mounted on.
Type: (String | HTMLElement)
DOM elements registered.
Type: Object<String, HTMLElement>
Init hook. Called synchronously after the instance has been initialized.
Mounted hook. Called synchronously after the component compiled template is inserted in the DOM.
Before destroy hook. Called synchronously before the component has been destroyed.
Destroyed hook. Called synchronously after the component has been destroyed.
Mount a pre-rendered component.
((String | HTMLElement))
Element.
Mount a component.
((String | HTMLElement | null)
= null
)
Element.
(String)
Mount type.
Destroy a component.
Log component debug informations.
Starts with.
Boolean
:
True if given string starts with given prefix,
else otherwise.
Walk a DOM node and call the given callback.