Peter looks at how to call a JavaScript function from your TypeScript code and do it in a type-safe way. Along the way, he dramatically simplifies a Backbone application by integrating Knockout. I ...
AddSubView is used to render and add a subview to an parent view. If you need to perform some work after the view is added to the DOM you can implement a 'onShow' function. This will also trigger a ...
Backbone provides an elegant way to encapsulate the code necessary to get your data and HTML onto the page. Peter shows how to make it work in TypeScript. In last month's column, I showed you how to ...
Each event callback receives the relevant item value as an object, and a 'next' callback. To cancel the event and prevent the default action, do not run the callback. This allows you to run ...