Created
July 29, 2014 14:35
-
-
Save dburles/a76ffd14992daf636f6c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
GroupOneController = RouteController.extend({ | |
activeTab: 'groupOne', | |
// ... | |
}); | |
PageController = GroupOneController.extend({ | |
// inherits 'activeTab' | |
// ... | |
}); | |
UI.registerHelper('activeTab', function(name) { | |
if (Router.current() && Router.current().activeTab === name) | |
return 'active'; | |
}); | |
<button class="{{activeTab 'groupOne'}}">Group One</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment