- Details
- Written by: Stanko Milosev
- Category: Knockout
- Hits: 3485
I have made few of my examples like:
Important thing is line:
ko.applyBindings(new ViewModel());
Where ViewModel must be like:
var ViewModel = function () { this.myClick = function () { alert('Yo! This is a test!'); } };