I\'ve been creating a htmlHelper function using TypeScript and KnockoutJS to edit a list of emails.
The list of emails is a Knockout ObservableArray called e
Use data-bind something like this:
data-bind="click:$parent.deleteItem.bind($parent)"
Assign this to that as shown below
this
that
public deleteItem(itemToDelete) { var that = this; // remove item from list that.emails.remove(itemToDelete); }