Skip to content

Instantly share code, notes, and snippets.

@onlymejosh
Created January 6, 2016 21:18
Show Gist options
  • Save onlymejosh/e4373180a9b3378fc00f to your computer and use it in GitHub Desktop.
Save onlymejosh/e4373180a9b3378fc00f to your computer and use it in GitHub Desktop.
nested todos
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
features: [
{
id: 1,
title: 'Feature 1',
todos: [
{
id:1,
title: 'ticket 1'
}
]
},
{
id: 1,
title: 'Feature 2',
todos: []
},
]
});
<h1>Welcome to {{appName}}</h1>
{{#each features as |feature|}}
{{/each}}
{
"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": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment