custom callbacks from base element

This commit is contained in:
Fran Jurmanović
2021-06-02 14:05:38 +02:00
parent ffef98e7a5
commit ca51c304f3
21 changed files with 122 additions and 148 deletions

View File

@@ -16,7 +16,7 @@ class AppMainElement extends BaseComponentElement {
constructor() {
super();
}
connectedCallback() {
elementConnected = () => {
if (this.appMain !== this) return;
const mainRoot = this.createMainRoot();
this.httpClient = new HttpClient();
@@ -70,7 +70,7 @@ class AppMainElement extends BaseComponentElement {
},
]);
this.routerService.init();
}
};
middleAuth = () => {
if (!this.isAuth) {