18

Just started learning the new asp.net mvc4 SPA template , noticed that knockout is being used , so give me reference to any book / Video which describes asp.net mvc with knockout.js from scratch .

connectedsoftware
  • 6,987
  • 3
  • 28
  • 43
Ancient
  • 3,007
  • 14
  • 55
  • 104

1 Answers1

36

A really good start is to work through the tutorials step by step on the knockoutjs.com site, the tutorials are brilliantly put together and there are live examples which help to demonstrate "real world" scenarios.

Once you are comfortable with the knockout constructs this article gives a basic but good illustration of integrating pure knockout with MVC controllers, models and views.

An alternative approach is to use knockoutMVC although it is important to point out that this is an extension of knockout.js and is definitely not required to get knockout working really well in an MVC project (I don't use this but thought I would include for completeness).

Finally if you want to get more advanced, this SPA guide is a very useful 4-part tutorial on creating a Single Page Application with Knockout and MVC.

connectedsoftware
  • 6,987
  • 3
  • 28
  • 43
  • But is there any tutrial in which they told about mvc and knockout ? – Ancient May 30 '13 at 09:39
  • Hmm , gud . Lets see if anyone else have some thing much better – Ancient May 30 '13 at 09:41
  • @user2413182 updated with a SPA specific link – connectedsoftware May 30 '13 at 09:54
  • its not 3-part , its actually 4-part . Anyway thank for another good share :-) – Ancient May 30 '13 at 10:20
  • 1
    Awesome link (SPA) . Many Many thanks , almost contains every thing need for a great web . Thanks again . you've got +1 . – Ancient May 30 '13 at 10:29
  • 4
    it is probably advisable to read http://stackoverflow.com/questions/11618042/is-there-a-reason-i-would-use-knockout-mvc-instead-of-knockout-js before deciding on knockoutmvc. Its misleading when you say `try this site for details on integrating knockout with MVC controllers, models and views:` <-- as youre implying knockoutjs requires knockoutmvc to work with MVC which it doesnt and in fact knockoutmvc may be a *bad* way to combine the two. – wal Sep 01 '13 at 15:30
  • @wal, I completely agree with you, that part of the answer is misleading. I will revise later on when I have time to update properly – connectedsoftware Sep 02 '13 at 07:23
  • @wal updated to be more transparent regarding knockoutmvc, thanks for your comments. – connectedsoftware Sep 09 '13 at 20:55