Skip to content

Instantly share code, notes, and snippets.

@cloke
Created July 2, 2013 21:16
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 cloke/5913220 to your computer and use it in GitHub Desktop.
Save cloke/5913220 to your computer and use it in GitHub Desktop.
<ul>
{{#each song in songs}}
<li>{{song.title}}</li>
{{/each}}
</ul>
MyListView: Em.CollectionView.extend
tagName: 'ul'
itemViewClass: Em.View.extend
template: Em.Handlebars.compile '
{{view.content.title}}
'
{{view App.MyListView contentBinding="controller.content.songs"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment