Created
March 6, 2021 09:30
-
-
Save Chriz76/c3dc2e040ee8cf0b1b080e13f31a4fab 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
<div> | |
<nav class="navbar navbar-expand navbar-dark bg-dark"> | |
<div class="navbar-nav ml-auto" *ngIf="!user"> | |
<li class="nav-item"> | |
<a (click)="signInWithGoogle()" class="nav-link">Sign in with google</a> | |
</li> | |
</div> | |
<div class="navbar-nav ml-auto" *ngIf="user"> | |
<span class="navbar-text"> | |
{{ user.email }} | |
</span> | |
<li class="nav-item"> | |
<a class="nav-link" (click)="signOut()">Logout</a> | |
</li> | |
</div> | |
</nav> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment