8

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!

1 Answer 1

14

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

Sign up to request clarification or add additional context in comments.

1 Comment

great tip! hadn't seen that yet. So before I go down the generation path, I'll definitively give this a thorough try.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.