Handling events
The event handlers can be used from the component instance its nomenclature is the same as used in addEventListener()
, however, they must end with a $
symbol, the arguments received also follow those of addEventListener()
:
Bemtv will manage and add them to the first element it finds in the template.
To remove just call the returned function:
Last updated