Skip to content

Instantly share code, notes, and snippets.

@avatsaev
Created March 2, 2017 21:36
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/1f79fabd1e4112711a89b45a9ccbb465 to your computer and use it in GitHub Desktop.
Save avatsaev/1f79fabd1e4112711a89b45a9ccbb465 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="!(authService.userSignedIn$ | async)"> <a (click)="presentAuthDialog()" >LOGIN</a></li>
<li *ngIf="!(authService.userSignedIn$ | async)"> <a (click)="presentAuthDialog('register')">REGISTER</a></li>
<li *ngIf="(authService.userSignedIn$ | async)"><a [routerLink]="['/profile']">PROFILE</a></li>
<li *ngIf="(authService.userSignedIn$ | async)"><a (click)="logOut()">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