Skip to content

Instantly share code, notes, and snippets.

@joshsmith
Created June 5, 2014 21:03
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 joshsmith/08020834b14c9fb33b23 to your computer and use it in GitHub Desktop.
Save joshsmith/08020834b14c9fb33b23 to your computer and use it in GitHub Desktop.
<h1>{{title}}</h1>
<ul>
{{#each step in steps itemController='step'}}
<li>ID: {{step.id}}, Order: {{step.order}}</li>
<ul>
{{#each substep in step.substeps}}
<li>
<img {{bind-attr src=substep.image}} />
</li>
{{/each}}
</ul>
{{/each}}
</ul>
StepController = Ember.ObjectController.extend
sortProperties: ['order'],
sortAscending: true
`export default StepController`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment