Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Can't access object values by dynamic key in Handlebars
import Ember from 'ember';
export default Ember.Controller.extend({
{{#each numbers as | value index |}}
letter=(get-array letters index)
import Ember from 'ember';
export function getArray(params/*, hash*/) {
return params[0][params[1]];
export default Ember.Helper.helper(getArray);
{{letter}} is letter number {{number}}
"version": "0.4.17",
"EmberENV": {
"dependencies": {
"jquery": "",
"ember": "",
"ember-data": "",
"ember-template-compiler": ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.