Book Image

KNOCKOUTJS BLUEPRINTS

By : Carlo Russo
Book Image

KNOCKOUTJS BLUEPRINTS

By: Carlo Russo

Overview of this book

Table of Contents (12 chapters)
KnockoutJS Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we have seen all the remaining functionalities of KnockoutJS (core), which we skipped in the previous chapter.

The application we realized was simple enough, but we used it to learn better how to use components and custom binding handlers.

If you think we put too much code for such a small project, try to think what differences you have seen between the first and the second component: the more component and binding handler code you write, the less you will have to write in the future.

The most important point about components and custom binding handlers is that you have to realize them looking at future reuse; the more good code you write, the better it will be for you later.

The core point of this chapter was AMD and RequireJS; how to use them inside a KnockoutJS project, and why you should do it.

In the next chapter, we will look at how to realize a full-featured SPA with the help of DurandalJS, a framework built around jQuery, KnockoutJS, and RequireJS.