1
0
Fork 0
fgdata/webgui/topics/Tools.js

29 lines
827 B
JavaScript
Raw Normal View History

2015-01-25 12:02:20 +00:00
define([
'knockout', 'text!./Tools.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
2015-01-25 12:02:20 +00:00
ko.components.register('Tools/Holding Pattern', {
require : 'topics/Tools/Holding'
});
2015-02-22 20:40:30 +00:00
ko.components.register('Tools/Vertical Navigation', {
require : 'topics/Tools/VerticalNavigation'
});
2015-02-18 11:31:00 +00:00
ko.components.register('Tools/Stopwatch', {
require : 'topics/Tools/Stopwatch'
});
2015-01-25 12:02:20 +00:00
// Return component definition
return {
viewModel : {
createViewModel : function(params, componentInfo) {
return new SubtopicViewmodel([
'Holding Pattern', 'Wind Calculator', 'Vertical Navigation', 'Stopwatch'
], "Tools", params);
},
},
2015-01-25 12:02:20 +00:00
template : htmlString
};
});