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
to add my 2 cents, there's also a dirty way, that leverages the variable _this created by the Typescript compiler to keep a reference on this :
public deleteItem(emailToDelete: string) {
var that = eval('_this');
// remove item from list
that.emails.remove(emailToDelete); // remove? in JS, really?
}