I am receiving this error when attempting to use Kendo UI Mobile /SPA features:
Error: Your kendo mobile application element does not contain any direct child elements with data-role="view" attribute set. Make sure that you instantiate the mobile application using the correct container
I have one index.html page:
<!DOCTYPE HTML><html><head><meta charset="UTF-8"><title>Global Client Dashboard</title><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"><!--<link rel="shortcut icon" href="images/favicon.png"><link rel="apple-touch-icon" href="images/apple-touch-icon.png"> --><!-- CSS --><link rel="stylesheet" href="css/main.css"><link rel="stylesheet" href="css/login.css"><link rel="stylesheet" href="js/libs/kendoui/styles/kendo.mobile.all.min.css"><!-- jQuery --><!-- Using the jQuery in Kendo UI --><script src="js/libs/kendoui/js/jquery.min.js"></script><!-- Angular JS --><script src="js/libs/kendoui/js/angular.min.js"></script><!-- Kendo UI --><script src="js/libs/kendoui/js/kendo.all.min.js"></script><!-- application scripts --><script src="js/app.js"></script></head><body style="display: none;" kendo-mobile-application k-hash-bang="true" ng-app="gcdApp"> <!-- Default View - needed for routing --> <div data-role="view"></div> <!-- Header and Footer --> <kendo-mobile-layout k-id="'default'"> <kendo-mobile-header> <kendo-mobile-nav-bar> <kendo-view-title></kendo-view-title> <!-- <kendo-mobile-button class="about-button" k-align="'right'" href="views/about.html">About</kendo-mobile-button> --> </kendo-mobile-nav-bar> </kendo-mobile-header> <kendo-mobile-footer> <kendo-mobile-tab-strip> <a href="views/accounts.html" data-icon="home">Home</a> <a href="views/about.html" data-icon="info">About</a> <a href="views/more.html" data-icon="more">More</a> </kendo-mobile-tab-strip> </kendo-mobile-footer> </kendo-mobile-layout> <script> new kendo.mobile.Application($(document.body), { initial: "views/login.html" }); </script> <!-- Standard Worklight Stuff --> <script src="js/initOptions.js"></script> <script src="js/main.js"></script> <script src="js/messages.js"></script> <!-- Controllers --> <script src="js/controllers/controllers.js"></script> <script src="js/controllers/accounts.js"></script> <script src="js/controllers/metrics.js"></script></body></html>I followed this tutorial to get this page up and running:
http://blogs.telerik.com/kendoui/posts/13-08-01/kendo-ui-mobile-remote-views-and-separate-html-files
I found this post in the forum, however, I am not sure how to plug into my index.html to get to work:
http://www.telerik.com/forums/problems-getting-kendo-to-work
I was hoping to get some help to get this to work correctly.
Thanks!
Dan