Upgraded to new IgniteHtml register element.

This commit is contained in:
MattMo 2022-08-26 08:36:21 -07:00
parent ce6f5efc38
commit 3a16c62b92

View File

@ -1,3 +1,4 @@
import { IgniteHtml } from "../ignite-html/ignite-html.js";
import { IgniteElement } from "../ignite-html/ignite-element.js";
import { IgniteTemplate, slot, div, html } from "../ignite-html/ignite-template.js";
import { IgniteCallback, IgniteProperty} from "../ignite-html/ignite-html.js";
@ -495,8 +496,8 @@ class Router {
Router.states = [];
Router.hashMode = false;
customElements.define("router-link", RouterLink);
customElements.define("router-view", RouterView);
IgniteHtml.register("router-link", RouterLink);
IgniteHtml.register("router-view", RouterView);
window.Router = Router;