Skip to content

Instantly share code, notes, and snippets.

@paulcwatts
Last active June 4, 2017 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save paulcwatts/3f1fd272cc0357e29258f6e4c72f177d to your computer and use it in GitHub Desktop.
Save paulcwatts/3f1fd272cc0357e29258f6e4c72f177d 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.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "2.12.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment