1
0
Fork 0
fgdata/Phi/topics/Environment.js

28 lines
812 B
JavaScript
Raw Normal View History

2015-01-25 12:02:20 +00:00
define([
'knockout', 'text!./Environment.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
2015-01-25 12:02:20 +00:00
ko.components.register('Environment/Date & Time', {
require : 'topics/Environment/DateTime'
});
ko.components.register('Environment/Weather', {
require : 'topics/Environment/Weather2'
2015-01-25 12:02:20 +00:00
});
ko.components.register('Environment/Position', {
require : 'topics/Environment/Position'
});
// Return component definition
return {
viewModel : {
createViewModel : function(params, componentInfo) {
return new SubtopicViewmodel([
'Date & Time', 'Weather', 'Position',
], "Environment", params);
},
},
2015-01-25 12:02:20 +00:00
template : htmlString
};
});