Skip to content

Instantly share code, notes, and snippets.

@rniemeyer
Created January 23, 2013 21:51
Show Gist options
  • Save rniemeyer/4614131 to your computer and use it in GitHub Desktop.
Save rniemeyer/4614131 to your computer and use it in GitHub Desktop.
Knockout-Kendo with AMD
require.config({
paths: {
"knockout": "../../ext/knockout-2.1.0",
"jquery": "../../ext/jquery.min",
"kendo": "../../ext/kendo.all.min",
"knockout-kendo": "../../build/knockout-kendo.min"
},
shim: {
"kendo": {
deps: ["jquery"],
exports: "kendo"
}
}
});
require(["knockout", "knockout-kendo"], function(ko) {
var ViewModel = function() {
console.log(ko);
this.choices = ["apple", "orange", "banana"];
this.selectedChoice = ko.observable();
};
ko.applyBindings(new ViewModel());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment