Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
selectedOptions: ['one']
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
funnyPeople: Ember.computed.map('people',function(element){
return element.name + "is happy";
})
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
mySize: 'm',
imageUrl: Ember.computed('mySize', 'image', function() {
let { image, mySize } = this.getProperties('image', 'mySize');
return Ember.get(image, `size.${mySize}.url`);