Knockout.js. Building Dynamic Client-Side Web Applications - Helion
ISBN: 978-14-919-1432-8
stron: 102, Format: ebook
Data wydania: 2014-12-09
Księgarnia: Helion
Cena książki: 63,74 zł (poprzednio: 74,99 zł)
Oszczędzasz: 15% (-11,25 zł)
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
Osoby które kupowały "Knockout.js. Building Dynamic Client-Side Web Applications", wybierały także:
- Mastering MEAN Stack 88,72 zł, (67,43 zł -24%)
- Psychology of UX Design 88,72 zł, (67,43 zł -24%)
- Time Is Money. The Business Value of Web Performance 74,99 zł, (63,74 zł -15%)
- SVG Text Layout. Words as Art 94,98 zł, (80,73 zł -15%)
- Discussing Design. Improving Communication and Collaboration through Critique 94,98 zł, (80,73 zł -15%)
Spis treści
Knockout.js. Building Dynamic Client-Side Web Applications eBook -- spis treści
- 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 Users Context
- Page Reloads for Content Updates
- Conclusion
- Index