import { Injectable } from "@angular/core" ; @ Injectable ( { providedIn : "root" } ) export class AuthenticationService { isLoggedIn = false ; constructor ( ) { } setLoggedIn ( _value ) { this . isLoggedIn = _value ; } isAuthenticated ( ) { return this . isLoggedIn ; } }