Hello World with KnockoutJs–Code Restructure

You'll enjoy the ViewModel pattern if you don't want to have any code on your View – be it JS or CS! You can have a clean markup and a separate most part of the code that might be required to make it work. You'll probably relate to it the best if you have some experience working with a XAML based UI technology (WPF/SL/Windows 8), but that's not a prerequisite.

Read the below two post to know more about Knockoutjs with ASP.NET MVC 4.

http://westdiscgolf.blogspot.com/2013/01/hello-world-with-knockoutjscode-review.html

http://blogs.msdn.com/b/amar/archive/2012/12/12/hello-world-with-knockout-js-and-asp-net-mvc-4.aspx