xiaolizi007
11/22/2016 - 7:02 AM

From http://wiki.jikexueyuan.com/project/kendo-ui-development-tutorial/the-view-single-page-applications.html


<div id="app"></div>
<script id="index" type="text/x-kendo-template">
<div>Hello <span data-bind="text:foo"></span>!</div>
</script>

<script>
    var model = kendo.observable({ foo: "World" });
    var index = new kendo.View('index', { model: model });
    index.render("#app");
</script>