Skip to content

Instantly share code, notes, and snippets.

@RuslanZavacky
Created September 19, 2016 16:09
Show Gist options
  • Select an option

  • Save RuslanZavacky/d0f5f880b8916b6f8b1567f2d07017c5 to your computer and use it in GitHub Desktop.

Select an option

Save RuslanZavacky/d0f5f880b8916b6f8b1567f2d07017c5 to your computer and use it in GitHub Desktop.
Simple assets solution
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