No info displayed - always message "Please select a dom node with ko data."
Closed this issue · 0 comments
timstuyckens commented
If you have viewmodels with a sort of base class like
var baseViewModel=function(){
var self=this;
self.awesomeProperty=ko.observable("");
return self;
};
and a concrete viewmodel that uses that base class like
var featurViewModel=function(){
var self=baseViewModel();
self.featureProperty=ko.observable("");
return self;
}
the $root variable in of the knockout context is the global window object. Doing ko.toJS(context.$root) will crash