Ignite router now uses ready function from ignite element so that the router link and router view is setup once the page is fully loaded.

This commit is contained in:
Matt Mo 2020-09-11 07:54:17 -07:00
parent fbcb4e5f46
commit 1dc47834e5

View File

@ -28,6 +28,10 @@ class RouterLink extends IgniteElement {
);
}
ready() {
this.update();
}
update() {
var routeMatches = RouteMatcher.matches(this.route);
@ -74,6 +78,10 @@ class RouterView extends IgniteElement {
).style("display", this.show, null, (value) => { return value ? null : "none"; });
}
ready() {
this.update();
}
update() {
var routeMatches = RouteMatcher.matches(this.route);