refactor: remove oninit
This commit is contained in:
parent
22086a88fa
commit
ab3bc5587e
1 changed files with 1 additions and 4 deletions
|
@ -9,12 +9,9 @@ import { RouterLink } from '@angular/router';
|
||||||
templateUrl: './landing-page.component.html',
|
templateUrl: './landing-page.component.html',
|
||||||
})
|
})
|
||||||
export class LandingPageComponent {
|
export class LandingPageComponent {
|
||||||
public isLoggedIn = false;
|
|
||||||
private keycloakService: KeycloakService = inject(KeycloakService);
|
private keycloakService: KeycloakService = inject(KeycloakService);
|
||||||
|
|
||||||
private ngOnInit() {
|
public isLoggedIn = this.keycloakService.isLoggedIn();
|
||||||
this.isLoggedIn = this.keycloakService.isLoggedIn();
|
|
||||||
}
|
|
||||||
|
|
||||||
public login() {
|
public login() {
|
||||||
const baseUrl = window.location.origin;
|
const baseUrl = window.location.origin;
|
||||||
|
|
Reference in a new issue