O'Reilly logo

Mastering KnockoutJS by Timothy Moran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Extending Knockout with Preprocessors and Providers

In the previous chapter, we looked at adding custom binding handlers to Knockout in order to add features and integrate them with third-party tools. This capability was part of Knockout when it was first released, and it allows for powerful extensions to Knockout's functionality. In this chapter, we are going to look at some more advanced techniques for extending, or even changing, Knockout binding behaviors. You will learn how to create:

  • Binding handler preprocessors
  • Node preprocessors
  • Binding providers

After we cover this, we will take a look at the Knockout Punches library, which is a collection of preprocessors and extensions by Knockout developer Michael Best.

Binding the handler preprocessing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required