Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get keyword does not allow numeric keys to be used #13296

Closed
rwjblue opened this issue Apr 11, 2016 · 0 comments
Closed

get keyword does not allow numeric keys to be used #13296

rwjblue opened this issue Apr 11, 2016 · 0 comments

Comments

@rwjblue
Copy link
Member

rwjblue commented Apr 11, 2016

Due to this line, using get with a numeric key does not work properly.

  model() {
    return {
      indexes: [2,3,4],
      items: {
        2: 'blah',
        3: 'zorz',
        4: 'derp'        
      }
    }
  },
    <ul>
      {{#each model.indexes as |index|}}
        <li>{{get model.items index}}</li>
      {{/each}}
    </ul>

Demo: http://rwjblue.jsbin.com/loneva/edit?html,js,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants