can’t I just bind inline event on ionic component?
like:
<ion-button id="btn-focus" ionFocus="console.log(1)" >
it works this way though:
let focusbutton = document.querySelector("#btn-focus");
focusbutton.addEventListener("ionFocus", () => {
console.log("focused");
})
5 posts - 3 participants