generated from flo/template-frontend
20 lines
495 B
TypeScript
20 lines
495 B
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
import { AuthService } from "./core/services/auth.service";
|
|
import { AppService } from "./core/services/app.service";
|
|
|
|
@Component({
|
|
selector: "app-root",
|
|
templateUrl: "./app.component.html",
|
|
styleUrls: ["./app.component.scss"],
|
|
})
|
|
export class AppComponent implements OnInit {
|
|
constructor(
|
|
private authService: AuthService,
|
|
private appService: AppService
|
|
) {}
|
|
|
|
ngOnInit(): void {
|
|
this.authService.readUserState();
|
|
}
|
|
}
|