Last active
August 29, 2015 14:08
-
-
Save bazzel/c1d3b595c5232951fc35 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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'span', | |
starred: function() { | |
return new Array(this.get('starCount')); | |
}.property('starCount'), | |
unstarred: function() { | |
return new Array(5-this.get('starCount')); | |
}.property('starCount') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment