Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pixelhandler/4cbf9c4048a8e05cc1db to your computer and use it in GitHub Desktop.

Select an option

Save pixelhandler/4cbf9c4048a8e05cc1db to your computer and use it in GitHub Desktop.
things
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
otherProperty: 'initial'
});
{{input type='text' value=otherProperty}}
{{my-component things='2' otherProperty=otherProperty}}
import Ember from 'ember';
export default Ember.Component.extend({
things: [1],
concatenatedProperties: ['things']
});
<ul>{{#each things as |thing|}}
<li>{{thing}}</li>
{{/each}}</ul>
{
"version": "0.5.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.2.0",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "2.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment