문제

Does anyone know of an example application using knockout js and MVC 2? I'm trying to learn knockout and am having trouble grasping how to persist model data via an ajax call to an action.

도움이 되었습니까?

해결책

There's a great post here by the author of Knockout on how to use it with MVC. In MVC 2 you can use the built in model binder instead of a [FromJson] attribute like the article suggests.

Congrats on finding Knockout. My team has absolutely loved working with it. One of our guys replaced a dynamic silverlight grid control that took weeks of development with a knockout form (w/ even more functionality!) in less than a day. It's a great framework for dealing with lists on the client side.

다른 팁

I have ported the knockout samples to .NET MVC3 (Razor)-- with restful data access. The url is http://harshbhasin.com/opensource/ko

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top