Created
May 31, 2016 12:31
-
-
Save cah-danmonroe/4248a8daea0e6d3d7f57ef35dda8b65e to your computer and use it in GitHub Desktop.
Score array test
This file contains 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({ | |
rows: Ember.A([1,2,3,4,5,6,7,8,9,10]), | |
cols: Ember.A([1,2,3,4,5]), | |
foos: Ember.A([ | |
Ember.Object.create({ | |
scores: [ | |
Ember.Object.create({ points: 1 }), | |
Ember.Object.create({ points: 2 }), | |
Ember.Object.create({ points: 3 }), | |
Ember.Object.create({ points: 4 }), | |
Ember.Object.create({ points: 5 }) | |
] | |
}), | |
Ember.Object.create({ | |
scores: [ | |
Ember.Object.create({ points: 6 }), | |
Ember.Object.create({ points: 7 }), | |
Ember.Object.create({ points: 8 }), | |
Ember.Object.create({ points: 9 }), | |
Ember.Object.create({ points: 10 }) | |
] | |
}), | |
Ember.Object.create({ | |
scores: [ | |
Ember.Object.create({ points: 11 }), | |
Ember.Object.create({ points: 12 }), | |
Ember.Object.create({ points: 13 }), | |
Ember.Object.create({ points: 14 }), | |
Ember.Object.create({ points: 15 }) | |
] | |
}), | |
Ember.Object.create({ | |
scores: [ | |
Ember.Object.create({ points: 16 }), | |
Ember.Object.create({ points: 17 }), | |
Ember.Object.create({ points: 18 }), | |
Ember.Object.create({ points: 19 }), | |
Ember.Object.create({ points: 20 }) | |
] | |
}), | |
Ember.Object.create({ | |
scores: [ | |
Ember.Object.create({ points: 21 }), | |
Ember.Object.create({ points: 22 }), | |
Ember.Object.create({ points: 23 }), | |
Ember.Object.create({ points: 24 }), | |
Ember.Object.create({ points: 25 }) | |
] | |
}) | |
]) | |
}); |
This file contains 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
{ | |
"version": "0.8.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.5.1", | |
"ember-data": "2.5.2", | |
"ember-template-compiler": "2.5.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment