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.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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 Controller from 'ember-controller'; | |
import service from 'ember-service/inject'; | |
import computed from 'ember-computed'; | |
import get from 'ember-metal/get'; | |
import RESULT from '../fixture/ajax-result'; | |
export default Controller.extend({ | |
appName: 'JSON to model', | |
store: service(), |
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 SelectionHandler from '../utils/selection'; | |
export default Ember.Controller.extend({ | |
content: [1, 2, 3, 4, 5], | |
init() { | |
this._super(...arguments); | |
this.set('selectionHandler', SelectionHandler.create()); | |
Ember.bind(this, 'selectionHandler.content', 'content'); | |
}, |