Hello. I have created a Kendo UI core widget project. I have created a viewmodel source code as home.js and am try to bind it with div of indexx.html..
This is the home.js.
var vm = kendo.observable({
isLoggedIn: true,
isLoggedIn1: true,
<other variables, functions});
kendo.bind(document.body($("#view2")), vm, kendo.mobile.ui);
After the binding when i run the code in iphone or android simulator it works perfectly, but when I check it in device, the div tag and its elements are not rendered. If If i remove script tag reference of home.js the page is rendered perfectly fine but then there is no functionality.
Please advice.
This is the home.js.
var vm = kendo.observable({
isLoggedIn: true,
isLoggedIn1: true,
<other variables, functions});
kendo.bind(document.body($("#view2")), vm, kendo.mobile.ui);
After the binding when i run the code in iphone or android simulator it works perfectly, but when I check it in device, the div tag and its elements are not rendered. If If i remove script tag reference of home.js the page is rendered perfectly fine but then there is no functionality.
Please advice.