Knockout.js
Building Dynamic Client-Side Web Applications
Publisher: O'Reilly Media
Final Release Date: December 2014
Pages: 102

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
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyKnockout.js
 
4.0

(based on 5 reviews)

Ratings Distribution

  • 5 Stars

     

    (2)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

75%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (3)
  • Helpful examples (3)

Cons

No Cons

Best Uses

  • Novice (3)

Reviewed by 5 customers

Displaying reviews 1-5

Back to top

 
4.0

"A bug in ch07-03.html"

By Kenneth

from Singapore

Comments about oreilly Knockout.js:

In ch07-03 example, It cannot filter any result.

This is because value did not become lowercase so it will not meet any element in availableTags array.

Wrong example
self.tag.subscribe(function(value){
self.matchedTags.removeAll();

if(value !==''){
for( var i = 0; i< self.availableTags.length; i++){
if(self.availableTags[i].toLowerCase().indexOf(value) >=0)
self.matchedTags.push(self.availableTags[i]);
}
}
});

Correct example:

self.tag.subscribe(function(value){
self.matchedTags.removeAll();

if(value !==''){
for( var i = 0; i< self.availableTags.length; i++){
if(self.availableTags[i].toLowerCase().indexOf(value.toLowerCase()) >=0)
self.matchedTags.push(self.availableTags[i]);
}
}
});

(1 of 1 customers found this review helpful)

 
4.0

Good Book!

By João Nabais

from Lisbon

Verified Reviewer

Pros

  • Accurate
  • Easy to understand
  • Helpful examples

Cons

    Best Uses

    • Novice
    • Student

    Comments about oreilly Knockout.js:

    Nice explanation and examples of Knockout features.

    Would love to see real Web Services integration in some examples instead of "mocking" the data.

    Should explain the ussage of "setTimout" in example 6-2 and 6-3.

    Rather than the explained, Good Job!

    (1 of 1 customers found this review helpful)

     
    5.0

    Love this resource

    By Huntero

    from Lisbon, Portugal

    About Me Developer

    Verified Reviewer

    Pros

    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly Knockout.js:

      Great book for people looking to get started and use as a reference for future projects using KnockoutJs, allowing easier user interaction between client and server.
      Very clean examples showing how to and where to work with the different features of knockoutjs.
      With very few books(and up-to-date) available about Knockoutjs, this books is a valuable resource to have.

      (5 of 5 customers found this review helpful)

       
      2.0

      Not bad, but not good enough

      By Graham

      from Saskatoon, SK

      About Me Developer, Educator

      Verified Buyer

      Pros

      • Accurate
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

      • Not comprehensive enough
      • Too basic

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly Knockout.js:

      This book, while very well written, was not a large enough difference from Knockout's online documentation to have been worthwhile. I was disappointed in the lack of discussion about Knockout's web components as well, which is a prominent feature in Knockout 3.2 (the version the book is focused on).

      I appreciated the author's knowledge on the subject, but I think for people looking to get further knowledge of Knockout, they may need to look elsewhere.

      (0 of 7 customers found this review helpful)

       
      5.0

      Don't judge a book by its cover

      By yaser

      from yemen

      Comments about oreilly Knockout.js:

      thank you

      Displaying reviews 1-5

      Back to top

       
      Buy 2 Get 1 Free Free Shipping Guarantee
      Buying Options
      Immediate Access - Go Digital what's this?
      Ebook:  $16.99
      Formats:  DAISY, ePub, Mobi, PDF
      Print & Ebook:  $21.99
      Print:  $19.99