Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
let i=0;
export default Ember.Controller.extend({
arr: [],
counter: (function(){
return this.get('arr.firstObject.x');
}).property('arr.@each.x'),