Created
November 9, 2017 01:01
-
-
Save rogerioadris/8af4bc0b7a2906dd997ada9312b7556e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
@Injectable() | |
export class AutenticacaoServiceProvider { | |
private isLoggedIn = false; | |
constructor() { } | |
login(): void { | |
this.isLoggedIn = true; | |
} | |
logout(): void { | |
this.isLoggedIn = false; | |
} | |
authenticated(): boolean { | |
return this.isLoggedIn; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment