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
queryString query selector
Returns HTMLElement DOM Node
emit event when the DOM element is active
arrayArray list of nodes
returns only one element
queryString the dom selector
Returns HTMLElement
returns an a node list of all available elements
queryString the dom selector
Returns NodeList
controller.on("navbar", (el) => {
navbar.init();
});