Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwjblue/fe49a22ed79e413bef558e8f95f84343 to your computer and use it in GitHub Desktop.
Save rwjblue/fe49a22ed79e413bef558e8f95f84343 to your computer and use it in GitHub Desktop.
beta-each-key-issue
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
hasKey: [
{ key: 'A' },
{ key: 'B' }
],
noKey: [
{ nokey: 'A' },
{ nokey: 'B' }
]
});
<h1>Welcome to {{appName}}</h1>
<div>
{{#each hasKey key='key' as |item|}}
{{item.key}}
{{/each}}
</div>
<div>
{{#each noKey key='key' as |item|}}
{{item.nokey}}
{{/each}}
</div>
{
"version": "0.12.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.13.3",
"ember-template-compiler": "2.13.3",
"ember-testing": "2.13.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment