Skip to content

Instantly share code, notes, and snippets.

@mmun
Last active January 20, 2017 01:31
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 mmun/e64a6b19f8515ef3cca1ff993e2b88d8 to your computer and use it in GitHub Desktop.
Save mmun/e64a6b19f8515ef3cca1ff993e2b88d8 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
names: ['martin', 'ricardo', 'spencer']
});
<ul>
{{#each names as |name|}}
<li style="display: inline-block; background-color: tomato;">
{{name}}
</li>
{{/each}}
</ul>
<br>
<ul>
{{#each names as |name|~}}
<li style="display: inline-block; background-color: tomato;">
{{~name~}}
</li>
{{~/each}}
</ul>
{
"version": "0.11.0",
"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.10.2",
"ember-data": "2.11.0",
"ember-template-compiler": "2.10.2",
"ember-testing": "2.10.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment