Chapter 5. Advanced Features of Knockout.js

Unfortunately, the basic features of Knockout.js are often not enough to write a really complex application. In this chapter, we will discuss some advanced features that may be useful in specific development scenarios. The features can be used in a pure Knockout.js application and in an application with server ASP.NET MVC logic. Also, understanding some of its features will help you understand how Knockout MVC works (see the next chapter for more details).

The list of topics that will be covered in this chapter is as follows:

  • Loading and saving JSON data
  • Mapping
  • Binding context
  • Custom bindings
  • Extending observables
  • Using fn to add custom functions
  • Template binding

Loading and saving JSON data

In client-server ...

Get Getting Started with Knockout.js for .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.