Skip to content

Commit

Permalink
Step 18.40: Create view for Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent a8bea1c commit efb981b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions imports/ui/components/auth/auth.html
@@ -0,0 +1,6 @@
<div layout="row">
<md-button flex ui-sref="login" ng-hide="auth.isLoggedIn">Login</md-button>
<md-button flex ui-sref="register" ng-hide="auth.isLoggedIn">Sign up</md-button>
<md-button flex ng-click="auth.logout()" ng-show="auth.isLoggedIn">Logout</md-button>
<div ng-show="auth.isLoggedIn">{{ auth.currentUser | displayNameFilter }}</div>
</div>

0 comments on commit efb981b

Please sign in to comment.