Hello! I am using Ionic without any Framework. How can I use the router? In the Docs there is this:
customElements.define('nav-home', class NavHome extends HTMLElement {
connectedCallback() {
this.innerHTML = `
... HTML CODE HERE ...
`;
}
});
How can I split it into files? I tried using:
customElements.define('nav-home', class NavHome extends HTMLElement {
connectedCallback() {
$(this).load('myfile.html');
}
});
with jQuery, but It is not a good idea. What do you use? Thanks!