Created
April 20, 2012 20:40
-
-
Save jakehow/2431758 to your computer and use it in GitHub Desktop.
Ember Conditional
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
{{#if MyApp.currentUser}} | |
<ul> | |
<li>Welcome, {{ MyApp.currentUser.name}} | <a href="#" {{action "logout" on="click"}}>Log Out</a></li> | |
</ul> | |
{{else}} | |
<ul> | |
<li><a href="#" {{action "showLogin" on="click"}}>Log In</a></li> | |
</ul> | |
{{/if}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment