A subscription is required to view this video. Enroll Today

JavaScript

Knockout.js - Part 2

  • Jacob Swanner
  • 1918 views

Knockout.js makes it easier to create rich, responsive UIs with JavaScript. In this series Jacob Swanner shows you the basics of using this client-side JavaScript library to keep your code organized.

Comments

u+i interact said

Nice overview there, thank you very much. You could/should change the s to

Robert Shaver said

Nice intro to knockout. Thanks. Question: going back to the demo code from part 1, how would you add a separate independent counter?

For example, I'm extrapolating on your code to try to instantiate two counters and then bind them.

var counter_1 = new Counter(); var counter_2 = new counter(); ko.applyBindings(counter_1); ko.applyBindings(counter_2);

But I don't understand how to create a second set of markup and how the applyBindings will differentiate between the two counters. Surly I don't need a different version of Counter for each instance.

Thanks for a great learning experience.

borjaruby said

I have problems w this code, loosk liek dont updates what ahve to update ...

Show the list of all posts in /posts.json titulo

  • Titulo,

Download

Share