Last active
August 29, 2015 14:01
-
-
Save spiegela/45f0427c8ee3734ec1e4 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
//location: app/components/link-link.js | |
var ListLinkComponent = Ember.Component.extend({ | |
tagName: 'li', | |
classNameBindings: ['active'], | |
active: function() { | |
return this.get('childViews').anyBy('active'); | |
}.property('[email protected]') | |
}); | |
export default ListLinkComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for that writeup!
Location should be:
app/components/list-link.js