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:
parent
fbcb4e5f46
commit
1dc47834e5
@ -28,6 +28,10 @@ class RouterLink extends IgniteElement {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ready() {
|
||||||
|
this.update();
|
||||||
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
var routeMatches = RouteMatcher.matches(this.route);
|
var routeMatches = RouteMatcher.matches(this.route);
|
||||||
|
|
||||||
@ -74,6 +78,10 @@ class RouterView extends IgniteElement {
|
|||||||
).style("display", this.show, null, (value) => { return value ? null : "none"; });
|
).style("display", this.show, null, (value) => { return value ? null : "none"; });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ready() {
|
||||||
|
this.update();
|
||||||
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
var routeMatches = RouteMatcher.matches(this.route);
|
var routeMatches = RouteMatcher.matches(this.route);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user