Pending Review
Last Updated: 20 May 2015 11:06 by Telerik Admin
Imported User
Created on: 20 May 2015 11:06
Category: MVVM
Type: Feature Request
1
I think a viewmodel can be binded directly on the DOM element. For example, <div kd-controller='viewmodel'> <button kd-click="click"></
I think a viewmodel can be binded directly on the DOM element.
For example,

<div kd-controller='viewmodel'>
    <button kd-click="click"></button>
</div>

<script>
    var viewmodel = kendo.observable({
        click: function() {
            alert('I am clicked!');
        }
    })
</script>
0 comments