Knockout.js: Building Dynamic Client-Side Web Applications

Front Cover
"O'Reilly Media, Inc.", Dec 9, 2014 - Computers - 102 pages

Use Knockout.js to design and build dynamic client-side web applications that are extremely responsive and easy to maintain. This example-driven book shows you how to use this lightweight JavaScript framework and its Model-View-ViewModel (MVVM) pattern. You’ll learn how to build your own data bindings, extend the framework with reusable functions, and work with a server to enhance your client-side application with persistence. In the final chapter, you’ll build a shopping cart to see how everything fits together.

If you’re a web developer with experience in JavaScript, HTML, and CSS, you’re ready for Knockout.

  • Learn how to create a ViewModel
  • Bind HTML data and attributes, and CSS classes and styles
  • Understand data binding in Knockout’s context hierarchy
  • Use properties that change dynamically through user interaction
  • Work with forms by using several different bindings
  • Bind multiple ViewModels on a single page
  • Extend or attach custom functions to observables
  • Perform server-side interactions with jQuery
  • Map a JavaScript object or apply JSON data to a new object
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 Getting Started with KnockoutJS
1
Chapter 2 The Ins and Outs of Data Binding
7
Chapter 3 Understanding the Data Binding Context
11
Chapter 4 Dynamically Changing Properties
21
Chapter 5 Working with Forms
31
Chapter 6 Multiple ViewModels Custom Data Bindings and Templates
39
Chapter 7 Enhancing Observables
47
Chapter 8 ServerSide Interaction
55
Chapter 9 The Mapping Plugin
63
Chapter 10 A Practical Example
71
Chapter 11 Next Steps
79
Index
83
About the Author
87
Copyright

Other editions - View all

Common terms and phrases

About the author (2014)

The author of 20 Recipes for Programming MVC 3 from O'Reilly Media, Jamie Munro has been developing websites and web applications for over 15 years. For the past 6 years Jamie has been acting as a lead developer by mentoring younger developers to enhance their web development skills. Taking his love of mentoring people, Jamie began his writing career on his personal blog (http: //www.endyourif.com) back in 2009. As Jamie's blog grew in success, he turned his writing passion to books about web development. As well as writing books, Jamie is currently in the process of starting a new website (http: //www.webistrate.com) that is geared towards helping web developers further expand their experience with many online examples using MVC3, CakePHP, CodeIgniter, Jquery, Database Optimzation, and Search Engine Optimization.

Bibliographic information