更新时间:2021-07-23 20:09:58
coverpage
KnockoutJS Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with KnockoutJS
Installing KnockoutJS
Looking at MVVM
Binding DOM elements using Knockout
Power development using browser developer tools
Using internal functions with Knockout
Automating calculations with Knockout
Working with non-Knockout functions
Summary
Chapter 2. Using Arrays Nesting and Grids
Conditional binding
Introduction to arrays in Knockout
Sorting time
The simpleGrid plugin
Chapter 3. Giving Forms the Knockout Touch
Event binding
The textInput binding
Radio and checkbox binding
Select binding
The uniqueName binding
Grid forms
Chapter 4. Coding – AJAX Binding Properties Mapping and Utilities
JSON done Knockout style
Mapping – first look
Connecting with AJAX remotely
Unmapping your data
Merging mapped data
Mapping options
Utility functions
Purifying our computations
Coding documents for computed observables
Using a computed observable
Using the computed context
Chapter 5. The Joy of Templates
Native templates
Enhanced collection handling
Render event handling
Third-party template options
Awesome template options
Chapter 6. Packaged Elegance
Introduction to components
Enhancing attribute handling
Building your own libraries
Understanding the AMD approach
Component-based SPAs
What next?
Index