Generate Knockout Viewmodels using T4 templates | AngularJS | Scoop.it

Use a T4 template to generate Knockout-viewmodels based on .NET classes.

This article describes a solution to this problem by using T4 templates to generate the JavaScript Knockout models automatically based on the .NET classes. The resulting Knockout models are extendable so as to be able to add additional functions and (computed) properties client-side. Finally, I also added an IsDirty feature that can indicate if the model has been modified since it's data was set.


Via Jan Hesse