WARNING: Tried to load angular more than once. when I include JQuery

后端 未结 8 1676
暖寄归人
暖寄归人 2020-12-01 21:58

I am building an yeoman app with an angular-generator.

The js libraries included in my index.html file are:



        
8条回答
  •  心在旅途
    2020-12-01 22:15

    For me, this happened when I referenced my view incorrectly in my routes.

    I had:

    .when('/route', {
          templateUrl: 'views/myPage.html',
          controller : 'myCtrl'
    })
    

    but my view was named views/mypage.html

    The error message is not what I would expect. I would have expected a missing view error.

提交回复
热议问题