How to use nested observables and data context correct?
This sample is not working:
<JavaScript>
var Observable = require("FuseJS/Observable");
var nested = Observable({text: Observable()});
nested.text = "Test";
module.exports = {
info: nested
}
</JavaScript>
<Text Width="60%" Value="{info.text}" />
Also this is not working:
<JavaScript>
var Observable = require("FuseJS/Observable");
var nested = Observable({text: Observable()});
nested.text = "Test";
nested.text.addSubscriber(function(){
console.log('debug');
});
</JavaScript>
This sample is working:
<JavaScript>
var Observable = require("FuseJS/Observable");
var nested = Observable({text: Observable()});
nested.text = "Test";
module.exports = {
info: nested.text
}
</JavaScript>
<Text Width="60%" Value="{info}" />
Is it not possible to subscribe to a nested observable through point path notation?