events are bound to the controller when elements are found within the DOM.
Bind events to active DOM elements through publish / subscribe
Tests whether the node is active in the DOM
query
String query selector
Returns HTMLElement DOM Node
emit event when the DOM element is active
array
Array list of nodes
returns only one element
query
String the dom selector
Returns HTMLElement
returns an a node list of all available elements
query
String the dom selector
Returns NodeList
controller.on("navbar", (el) => {
navbar.init();
});