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