or
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
403 | Forbidden |
404 | Not Found |
405 | Method Not Allowed |
<
div
>
<
p
>This is rendering of the ${viewModel} view model</
p
>
<
span
data-bind
=
"text: ${viewModel}.data"
>
</
div
>
<
script
id
=
"viewTemplate"
type
=
"text/x-kendo-tmpl"
src
=
"template.tmpl"
>
<
script
type
=
"text/javascript"
src
=
"test.js"
/>
<
div
data-template
=
"viewTemplate"
data-bind
=
"source: viewData.viewModel1"
>
<
div
data-template
=
"viewTemplate"
data-bind
=
"source: viewData.viewModel2"
>
var
viewModel = kendo.observable({
viewData: {
viewModel1: {
viewModel:
"viewModel1"
},
viewModel2: {
viewModel:
"viewModel2"
}
},
viewModel1: {
data:
"I am the data for view model 1"
.
},
viewModel2: {
data:
"I am the data for view model 2"
.
}
})