Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2012 01:48
What would you like to do?
View context preservation
App.UserWidget = Ember.View.extend({
templateName: 'widget.user.handlebars',
{{#each App.users}}
{{view App.UserWidget userBinding="this"}}
{{#with view.user}}
<h1>{{lastname}}, {{firstname}}</h1>
<!-- target="this" is invalid, part of my confusion is how to use this with context. -->
<span {{action "deleteUser" target="this"}}>Delete User</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment