Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Kendo UI directives require jQuery to be available before AngularJS with Kendo grid in routing template with Html5mode

Why kendo load before Jquery in angular routing template with Kendo grid.

I have ordered the scripts, while clicking any event through angular routing templates getting this error in console.

Note: In page refresh, scripts loaded properly, the application works fine, not getting any error.

Only occurred in event routing. kendo load before jquery why.

order scripts :

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script src="https://code.angularjs.org/1.3.8/angular.js"></script>
    <script src="//kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script>
    <script src="https://code.angularjs.org/1.3.8/angular-sanitize.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.3.1/angular-ui-router.js"></script>
like image 582
Mohamed Sahir Avatar asked Jul 27 '16 11:07

Mohamed Sahir


2 Answers

I had the same issue: I was loading jQuery twice.

like image 165
abo-elleef Avatar answered Nov 15 '22 04:11

abo-elleef


Had the same issue. Resolved it by using the jQuery and angular that comes bundled with kendo

like image 38
2bit Avatar answered Nov 15 '22 05:11

2bit