Created
September 19, 2016 16:09
-
-
Save RuslanZavacky/d0f5f880b8916b6f8b1567f2d07017c5 to your computer and use it in GitHub Desktop.
Simple assets solution
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'; | |
| import computed from 'ember-computed'; | |
| export default Ember.Component.extend({ | |
| skin: 'default', | |
| skinImage: computed('skin', function() { | |
| switch (this.get('skin')) { | |
| case 'default': | |
| return `assets/default-skin.png`; | |
| } | |
| return ''; | |
| }) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment