hide header bar for login page

This commit is contained in:
Mario Romano
2016-11-02 00:56:19 +00:00
parent 1f6a14aba6
commit 665e5de7f7
2 changed files with 5 additions and 1 deletions

View File

@@ -54,6 +54,10 @@ export class AppComponent {
return this.auth.isLoggedIn();
}
isLoginPage(): boolean {
return location.pathname === '/login' || location.pathname === '/';
}
onLogout(event) {
event.preventDefault();
this.auth.logout()