Skip to content

Instantly share code, notes, and snippets.

@xamoom-pali
xamoom-pali / controllers.application.js
Last active September 21, 2017 12:51 — forked from 3gwebtrain/controllers.application.js
Itrating cumulated sub models
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
arrayOfFruitsArray: Ember.computed('model.values.[]', function(){
const values = this.get('model.values');
const cumulatedfruits = Ember.A();
values.forEach((value)=>{