Book Image

Knockout.JS Essentials

Book Image

Knockout.JS Essentials

Overview of this book

Table of Contents (16 chapters)
KnockoutJS Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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 download the code from this chapter, go to the GitHub repository at https://github.com/jorgeferrando/knockout-cart/tree/chapter3.