The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document

牧云@^-^@ 提交于 2019-12-07 08:23:49

问题


I have a Mvc with angular application.

There are two layout files : Loginlayout: - Default layout MasterLayout:

When click the Movie button , call the Movie Controller and Movie action.

    public ActionResult Movie()
    {

        return View();
    }

Its using mainlayout file:

In Mainlayout file i have mentioned

<script src="
            https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    @Scripts.Render("~/bundles/bootstrap")
    <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>

In page refresh , scripts get orderly loaded, while click the movie button. i am getting this error.

I have attached screenshot below:

while click the Movie button scripts order Error getting when click the Movie button When Page refresh scripts loaded


回答1:


i had the same issue, i was loading jquery twice, for other possible answers this question



来源:https://stackoverflow.com/questions/38507535/the-kendo-ui-directives-require-jquery-to-be-available-before-angularjs-please

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!