वहाँ KnockoutJS साथ टाइपप्रति का उपयोग कर के किसी भी नमूने है? मैं कैसे वे एक साथ काम करते हैं करने के लिए के रूप में बस उत्सुक हूँ?
संपादित करें
यहाँ है कि मैं क्या है, काम करने के लिए लगता है
declare var ko: any;
declare var $: any;
class ViewModel {
x = ko.observable(10);
y = ko.observable(10);
}
$(() => {
ko.applyBindings(new ViewModel());
});
यह निम्न जावास्क्रिप्ट में उत्पन्न करता है:
var ViewModel = (function () {
function ViewModel() {
this.x = ko.observable(10);
this.y = ko.observable(10);
}
return ViewModel;
})();
$(function () {
ko.applyBindings(new ViewModel());
});














