Skip to content

Instantly share code, notes, and snippets.

@avatsaev
Last active February 12, 2017 17:28
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 avatsaev/101dc894739577efa020709fb1133e3b to your computer and use it in GitHub Desktop.
Save avatsaev/101dc894739577efa020709fb1133e3b to your computer and use it in GitHub Desktop.
<!--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