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',
|
||||
})
|
||||
export class LandingPageComponent {
|
||||
public isLoggedIn = false;
|
||||
private keycloakService: KeycloakService = inject(KeycloakService);
|
||||
|
||||
private ngOnInit() {
|
||||
this.isLoggedIn = this.keycloakService.isLoggedIn();
|
||||
}
|
||||
public isLoggedIn = this.keycloakService.isLoggedIn();
|
||||
|
||||
public login() {
|
||||
const baseUrl = window.location.origin;
|
||||
|
|
Reference in a new issue