2015-01-25 12:02:20 +00:00
|
|
|
define([
|
2015-03-04 11:16:17 +00:00
|
|
|
'knockout', 'text!./Tools.html', './SubtopicViewmodel'
|
|
|
|
], function(ko, htmlString, SubtopicViewmodel) {
|
2015-01-25 12:02:20 +00:00
|
|
|
|
2015-02-19 09:12:09 +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 {
|
2015-03-04 11:16:17 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
});
|