added getters from main app element to other elements

This commit is contained in:
Fran Jurmanović
2021-06-03 19:18:50 +02:00
parent 7e3332e32c
commit b36e7f0ca6
6 changed files with 38 additions and 14 deletions

View File

@@ -9,14 +9,12 @@ import { BasePageElement } from "common/";
class LoginPageElement extends BasePageElement {
@targets inputs: Array<InputFieldElement>;
authService: AuthService;
routerService: RouterService;
errorMessage: string;
constructor() {
super();
}
elementConnected = (): void => {
this.authService = new AuthService(this.appMain.appService);
this.routerService = this.appMain.routerService;
this.update();
};