Last active
February 12, 2017 17:28
-
-
Save avatsaev/101dc894739577efa020709fb1133e3b 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
<!--Navigation--> | |
<div class="navbar-fixed"> | |
<nav role="navigation"> | |
<div class="nav-wrapper blue "> | |
<a [routerLink]="['']" id="logo-container" class="brand-logo">Rails & Angular Auth</a> | |
<ul class="right hide-on-med-and-down"> | |
<li *ngIf="!tokenAuthService.userSignedIn()"> | |
<a (click)="presentAuthDialog()" >LOGIN</a> | |
</li> | |
<li *ngIf="!tokenAuthService.userSignedIn()"> | |
<a (click)="presentAuthDialog('register')">REGISTER</a> | |
</li> | |
<li *ngIf="tokenAuthService.userSignedIn()"> | |
<a >PROFILE</a> | |
</li> | |
<li *ngIf="tokenAuthService.userSignedIn()"> | |
<a (click)="tokenAuthService.signOut()">LOGOUT</a> | |
</li> | |
</ul> | |
</div> | |
</nav> | |
</div> | |
<app-auth-dialog #authDialog ></app-auth-dialog> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment