import { Component , Input } from '@angular/core' ; import { LoginService } from 'app/admin/services/login.service' ; import { TagService } from 'app/shared/tag.service' ; @ Component ( { selector : 'mdi-admin-index-page' , templateUrl : './indexPage.component.html' , styleUrls : [ './indexPage.component.scss' ] , providers : [ LoginService , TagService ] } ) export class AdminIndexPageComponent { constructor ( private loginService , private tagService ) { } async ngOnInit ( ) { await this . loginService . isAuthed ( ) ; console . log ( 'authed' ) ; } async logout ( ) { await this . loginService . logout ( ) ; } public selectIcon ( ) { } }