Failed to instantiate module [$injector:unpr] Unknown provider: $routeProvider

后端 未结 3 554
囚心锁ツ
囚心锁ツ 2020-11-28 20:26

I received this error upon upgrading from AngularJS 1.0.7 to 1.2.0rc1.

3条回答
  •  佛祖请我去吃肉
    2020-11-28 21:02

    The ngRoute module is no longer part of the core angular.js file. If you are continuing to use $routeProvider then you will now need to include angular-route.js in your HTML:

    
    
                                     
                  
提交回复
热议问题