Last active
November 30, 2015 12:13
-
-
Save bazzel/2416e3f7285fa57e5167 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: Ember.computed('starCount', function() { | |
return new Array(this.get('starCount')).fill(''); | |
}), | |
unstarred: Ember.computed('starCount', function() { | |
return new Array(5-this.get('starCount')).fill(''); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment