Top "Knockout.js" questions

Knockout.

How to Clear Contents of an observableArray That was Populated from Previous Visits to a View

I have a Single Page Application that uses knockout for the data binding. The CAApproval.html view in my single …

knockout.js knockout-2.0 single-page-application
How to debug template binding errors for KnockoutJS?

I keep having trouble with debugging problems in KnockoutJS templates. Say I want to bind to a property called "items" …

debugging knockout.js
Formatting rules for numbers in KnockoutJS

I have a viewModel with a bunch of numbers with lots of decimal places. If my bindings look like this: &…

knockout.js
knockout data-bind on dynamically generated elements

How is it possible to make knockout data-bind work on dynamically generated elements? For example, I insert a simple html …

javascript jquery knockout.js
Setting the id attribute with knockoutjs including a prefix

I'm using KnockoutJS to iterate over an object, like this: Now this all works. But the problem i have is …

knockout.js knockout-2.0
How to get an observableArray's length?

I am attempting to create an array of contract line items (CLINs) that will be displayed as individual div elements …

knockout.js
Data-bind href attribute for anchor tag

I'm trying to bind anchor attributes to a KnockoutJS ViewModel field. I tried something like this: <a data-bind="href: …

javascript html data-binding knockout.js
What are the key differences between Meteor, Ember.js and Backbone.js?

Learning Ember.js / Backbone.js has been on my to-do list for a while. Now that Meteor is out, I …

javascript backbone.js knockout.js ember.js meteor
TypeScript with KnockoutJS

Is there any sample of using TypeScript with KnockoutJS? I'm just curious as to how they would work together? Edit …

knockout.js typescript
Remove specific element from array in Knockout.JS

I am creating a multiplayer game over network so I have to react on network events. I have this simple …

javascript html knockout.js