win10-rocks
Version:
Build apps for Win10 using the winjs-rocks MVVM architecture
36 lines (29 loc) • 776 B
JavaScript
var WinJSRocks = require('winjs-rocks'),
base = WinJSRocks["view-model"].base;
var _constructor = function(options) {
base.apply(this, arguments);
};
var instanceMembers = {
onDataSet: function() {
var that = this;
setTimeout(function() {
that.notifyLoading();
that._lateBoundProperty = "lateBoundPropertyValue";
that.notifyLoaded();
}, 5000);
},
earlyBoundProperty: {
get: function() {
return "earlyBoundPropertyValue";
}
},
lateBoundProperty: {
get: function() {
return this._lateBoundProperty;
}
}
};
var staticMembers = {
};
module.exports = WinJS.Class.derive(base, _constructor,
instanceMembers, staticMembers);