knockout-amd-helpers
Version:
Makes Knockout and AMD modules work better together
17 lines (13 loc) • 474 B
JavaScript
curl({
paths: {
"knockout": "../ext/knockout-3.4.1",
"knockout-amd-helpers": "../build/knockout-amd-helpers.min"
},
pluginPath: "../ext/curl/plugins"
});
curl(["knockout", "modules/app", "knockout-amd-helpers"], function(ko, App) {
ko.bindingHandlers.module.baseDir = "modules";
//fruits/vegetable modules have embedded template
ko.bindingHandlers.module.templateProperty = "embeddedTemplate";
ko.applyBindings(new App());
});