import { Injectable } from '@angular/core' ; import { AuthService } from "./auth.service" ; @ Injectable ( ) export class SimpleAuthService { private _userName = "" ; public login ( ) { this . _userName = "Max" ; } public logout ( ) { this . _userName = "" ; } public get isLoggedIn ( ) : boolean { return this . _userName != "" ; } public get userName ( ) : string { return this . _userName ; } }