Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Preface
Dynamic Client-Side Applications
Installing KnockoutJS
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Getting Started with KnockoutJS
Data Binding Syntax
Data Binding Example
What Is MVVM
Creating a ViewModel
Object-Oriented ViewModels
ViewModels with Parameters
2. The Ins and Outs of Data Binding
Binding HTML Data
Binding HTML Attributes, CSS Classes, and CSS Styles
Condition-Based Data Binding
3. Understanding the Data Binding Context
foreach Binding
foreach Callbacks (Events)
with Binding
4. Dynamically Changing Properties
Defining an Observable
pureComputed Observables
Showing and Hiding Elements
Adding and Removing Elements
When to Use Observables
5. Working with Forms
Form Data Bindings
Event Data Bindings
Listening for Changes
Unobtrusive Form Validation
6. Multiple ViewModels, Custom Data Bindings, and Templates
Binding Multiple ViewModels
Binding to a WYSIWYG Editor
Binding to a Knockout Template
7. Enhancing Observables
Extending Observables
Adding Custom Functions to Observables
Rate-Limiting Observables
8. Server-Side Interaction
Sending Data
Receiving Data
9. The Mapping Plugin
Map from an Object
Map from JSON (or a Server)
Observing and Ignoring Specific Properties
10. A Practical Example
Building a Shopping Cart
11. Next Steps
The Simplicity of Knockout
The User’s Context
Page Reloads for Content Updates
Conclusion
Index
← Prev
Back
Next →
← Prev
Back
Next →