Summary

In this chapter, you have learned how to extend Knockout using custom bindings and components. Custom bindings extend the options we can use inside the data-bind attribute and give us the power to make our code more readable, isolating DOM and data manipulation inside them. On the other hand, we have components. Components have their own view-model. They are an isolated application themselves. They help us to build complex applications through small pieces of code that interact with each other.

Now that you know how to split applications into small pieces of code, in the next chapter, you are going to learn how to use events in an unobtrusive way and how to extend observables to increase the performance and capabilities of Knockout.

To ...

Get KnockoutJS Essentials 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.