created main shadow element to store main app

This commit is contained in:
Fran Jurmanović
2021-05-30 14:40:43 +02:00
parent 9467101533
commit d7cfb58981
4 changed files with 29 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ class RouterService {
private domEvents: any = {
routechanged: new Event("routechanged"),
};
constructor(private mainRoot: Element) {}
constructor(private mainRoot: ShadowRoot | HTMLElement) {}
get routerState() {
const historyLen = this.historyStack?.length;