This is an EXACT copy of the sample Hello World fiddle. I just pasted it into a fiddle of my own and added the reference to http://knockoutjs.com/downloads/knockout-3.2.0.js. It works in IE 11, but not in Chrome. It does not appear to resolve the knockout reference. Is there a setting or two that is special for Chrome?
// Here's my data model var ViewModel = function(first, last) { this.firstName = ko.observable(first); this.lastName = ko.observable(last);
this.fullName = ko.computed(function() { // Knockout tracks dependencies automatically. It knows that fullName depends on firstName and lastName, because these get called
when evaluating fullName. return this.firstName() + " " + this.lastName(); }, this); }; ko.applyBindings(new ViewModel("Planet", "Earth")); // This makes Knockout get to work