Skip to content

Instantly share code, notes, and snippets.

@rogerioadris
Created November 9, 2017 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogerioadris/8af4bc0b7a2906dd997ada9312b7556e to your computer and use it in GitHub Desktop.
Save rogerioadris/8af4bc0b7a2906dd997ada9312b7556e to your computer and use it in GitHub Desktop.
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