Upgraded to new IgniteHtml register element.
This commit is contained in:
parent
ce6f5efc38
commit
3a16c62b92
@ -1,3 +1,4 @@
|
|||||||
|
import { IgniteHtml } from "../ignite-html/ignite-html.js";
|
||||||
import { IgniteElement } from "../ignite-html/ignite-element.js";
|
import { IgniteElement } from "../ignite-html/ignite-element.js";
|
||||||
import { IgniteTemplate, slot, div, html } from "../ignite-html/ignite-template.js";
|
import { IgniteTemplate, slot, div, html } from "../ignite-html/ignite-template.js";
|
||||||
import { IgniteCallback, IgniteProperty} from "../ignite-html/ignite-html.js";
|
import { IgniteCallback, IgniteProperty} from "../ignite-html/ignite-html.js";
|
||||||
@ -495,8 +496,8 @@ class Router {
|
|||||||
Router.states = [];
|
Router.states = [];
|
||||||
Router.hashMode = false;
|
Router.hashMode = false;
|
||||||
|
|
||||||
customElements.define("router-link", RouterLink);
|
IgniteHtml.register("router-link", RouterLink);
|
||||||
customElements.define("router-view", RouterView);
|
IgniteHtml.register("router-view", RouterView);
|
||||||
|
|
||||||
window.Router = Router;
|
window.Router = Router;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user