Limit search to available items
Book Cover
E-book
Author Moran, Timothy, author

Title Mastering KnockoutJS : use and extend Knockout to deliver feature-rich, modern web applications / Timothy Moran
Published Birmingham, UK : Packt Publishing, [2014]
©2014

Copies

Description 1 online resource (1 volume) : illustrations
Series Community experience distilled
Community experience distilled.
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Knockout Essentials; The environment setup; Looking at the samples; JavaScript's compatibility; An overview of Knockout; Observables; Observable arrays; Computed observables; Writable computed observables; Pure computed observables; Manual subscriptions; Defining viewmodels; The this and self keywords; Problems with prototypes; Serializing viewmodels; The data-bind syntax; Binding with nested properties; Binding against functions; Binding with expressions
Binding with function expressionsUsing parentheses in bindings; Debugging with ko.toJSON; Control flow bindings; The if binding; The with binding; The foreach binding; Template binding; Reusable templates; Recursive templates; Dynamic templates; Containerless control flow; Extenders; Simple extenders; Extenders with options; Extenders that replace the target; The Contacts List application; Overview; The contact model; The Contacts page viewmodel; A philosophical note on a model versus a viewmodel; Mock data service; The view; The edit form; Contacts list; Summary
Chapter 2: Extending Knockout with Custom Binding HandlersThe data binding pattern; Components of a binding handler; Using custom binding handlers; Simple binding handlers; Animated binding handlers; Working with third-party controls; Modifying the DOM with bindings; Applying new bindings to new children elements; Applying accessors; Controlling the order of binding handlers; Advanced binding handlers; Binding complex data with charts; Dynamically adjusting the chart type; Exposing APIs through bindings; Binding contexts and descendant bindings; Controlling descendant bindings
Child binding contextsExtending binding contexts; Setting a new root context; Containerless syntax with custom bindings; Using the virtual elements API; Summary; Chapter 3: Extending Knockout with Preprocessors and Providers; Binding the handler preprocessing; Creating preprocessors; The uppercase preprocessor; Wrapping existing bindings; Node preprocessors; Closing virtual template nodes; Supporting alternate syntaxes; Multiple syntaxes; Binding providers; Custom binding providers; Knockout punches; Embedded text bindings; Namespaced bindings; Dynamic namespaced bindings; Binding filters
Writing custom filtersFilters on other bindings; Adding additional preprocessors; Summary; Chapter 4: Application Development with Components and Modules; RequireJS -- AMD viewmodels; An overview of RequireJS; Asynchronous Module Definitions; Starting RequireJS; Configuration; Starting the app; The text plugin; Components; The basic component registration; Custom elements in IE 8 and higher; Template registration; The element ID; The element instance; An array of DOM nodes; Document fragments; HTML strings; Registering templates using the AMD module; The viewmodel registration
Summary If you are an experienced JavaScript developer who is looking for new tools to build web applications and get an understanding of core elements and applications, this is the book for you. A basic knowledge of DOM, JavaScript, and KnockoutJS is assumed
Notes Includes index
English
Online resource; title from cover (Safari, viewed December 18, 2014)
Subject Application software -- Development.
Web applications.
COMPUTERS -- Computer Literacy.
COMPUTERS -- Computer Science.
COMPUTERS -- Data Processing.
COMPUTERS -- Hardware -- General.
COMPUTERS -- Information Technology.
COMPUTERS -- Machine Theory.
COMPUTERS -- Reference.
Application software -- Development
Web applications
Form Electronic book
ISBN 9781783981014
1783981016
1783981008
9781783981007
Other Titles Use and extend Knockout to deliver feature-rich, modern web applications