How to use knockout.js with ASP.NET MVC ViewModels?

前端 未结 3 592
暖寄归人
暖寄归人 2020-11-28 00:31

Bounty

It\'s been awhile and I still have a couple outstanding questions. I hope by adding a bounty maybe these questions will get answered.

3条回答
  •  死守一世寂寞
    2020-11-28 00:55

    You could serialize your ASP.NET MVC view model into a javascript variable:

    @model CourseVM
    
    

    There are lots of examples in the knockout documentation that you could go through.

提交回复
热议问题