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: 59,42 zł (poprzednio: 69,09 zł)
Oszczędzasz: 14% (-9,67 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:
- Add Audio and Video to Your Site: The Mini Missing Manual 24,88 zł, (16,92 zł -32%)
- Powering Content. Building a Nonstop Content Marketing Machine 128,04 zł, (101,15 zł -21%)
- Designing Bots. Creating Conversational Experiences 128,04 zł, (101,15 zł -21%)
- Learning Node. Moving to the Server-Side. 2nd Edition 128,04 zł, (101,15 zł -21%)
- Developing Web Apps with Haskell and Yesod. Safety-Driven Web Development. 2nd Edition 128,04 zł, (101,15 zł -21%)
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