Created
March 2, 2017 21:36
-
-
Save avatsaev/1f79fabd1e4112711a89b45a9ccbb465 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="!(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