Skip to content

Instantly share code, notes, and snippets.

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
versions: Ember.computed('model.versions.[]', function () {
return this.get('model.versions').slice(1);
}),
actions: {
updateVersions () {
let modelVersions = this.get('model.versions');
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
You can’t perform that action at this time.