Book Image

Getting Started with Knockout.js for .NET Developers

By : Andrey Ankshin
Book Image

Getting Started with Knockout.js for .NET Developers

By: Andrey Ankshin

Overview of this book

Table of Contents (14 chapters)
Getting Started with Knockout.js for .NET Developers
About the Author
About the Reviewers

Getting started with Knockout MVC

In this section, we will take a look at Knockout MVC, including a brief introduction, the motivation for using it, an installation guide, and useful links.

Knockout MVC is a library for ASP.NET MVC, which is a wrapper for Knockout.js. It can be useful if you want to move all of your business logic to the server side, as it allows you to avoid duplication of the server data model on the client side. You can develop a client-server application without writing a single line of JavaScript code. The interaction between the view and model is described in the familiar MVVM style. You also don't need JavaScript for it because you can use C# expressions for this purpose (you can also use VB.NET instead of C#).

The Knockout MVC library performs the transformation of your business model from C# to JavaScript. It also generates all the JavaScript logic needed to implement the interaction between a client and server, and turns your C# binding expressions into JavaScript...