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(); } }