Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.net MVC 4 API and Knockout.js: Generate Knockout.js models

I'd like to have my knockout.js classes generated from my AspNet API controller and model classes.

I've googled quite a bit, but it looks as if I'll have to build it myself.

Any pointers to existing tools/code that will make this easier are appreciated!

like image 947
AyKarsi Avatar asked May 04 '12 10:05

AyKarsi


1 Answers

Look at using Knockout.mapping. This converts the json received from your controller automatically into view models complete with observables.

like image 107
jaffa Avatar answered Oct 01 '22 23:10

jaffa