Skip to content

Instantly share code, notes, and snippets.

@charlesjolley
Created February 13, 2011 23:10
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 charlesjolley/825269 to your computer and use it in GitHub Desktop.
Save charlesjolley/825269 to your computer and use it in GitHub Desktop.
<div class="card">
{{view image}}
<h1>{{firstName}} {{lastName}}</h1>
</div>
MyApp.CardView = SC.TemplateView.design({
template: 'card_view',
image: SC.ImageView.design({
valueBinding: '*parentView.content.imageUrl'
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment