Book Image

Backbone.js Essentials

By : Jeremy Walker
Book Image

Backbone.js Essentials

By: Jeremy Walker

Overview of this book

<p>This book offers insight into creating and maintaining dynamic Backbone.js web applications. It delves into the the fundamentals of Backbone.js and helps you achieve mastery of the Backbone library.</p> <p>Starting with Models and Collections, you'll learn how to simplify client-side data management and easily transmit data to and from your server. Next, you'll learn to use Views and Routers to facilitate DOM manipulation and URL control so that your visitors can navigate your entire site without ever leaving the first HTML page. Finally, you'll learn how to combine those building blocks with other tools to achieve high-performance, testable, and maintainable web applications.</p>
Table of Contents (20 chapters)
Backbone.js Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we explored Backbone's View class. You learned how to create DOM elements by instantiating a View as well as how to pass in existing elements to new Views. You also learned how to use Views to hook up event handlers on the View's el and how to remove/reattach these handlers to the undelegate and delegate methods. Finally, we considered how Backbone's (deliberately) empty implementation of the render method leaves us many different options for how to implement our own render method and what factors influence those choices.

In the next chapter, we'll take a look at Backbone's final class, the Router class. This class lets us simulate traditional web pages, only using Views instead of separate HTML files to generate those pages.