尝试安装angularjs组件并通过bower更新所有组件后,我的路由不再起作用。我想这是角度js和ngroute版本的某种问题,但对于角度js /凉亭新手我不知道如何解决它,任何指导都很感激!
错误:
[$injector:unpr] Unknown provider: $templateRequestProvider <- $templateRequest <- $route <- ngViewDirective
Bower文件:
{
"name": "asclepius",
"version": "0.0.0",
"dependencies": {
"angular": "^1.3.0",
"bootstrap": "^3.2.0",
"angular-animate": "^1.3.0",
"angular-cookies": "^1.3.0",
"angular-resource": "^1.3.0",
"angular-route": "^1.2.0",
"angular-sanitize": "^1.3.0",
"angular-touch": "^1.3.0",
"international-phone-number": "~0.0.7"
},
"devDependencies": {
"angular-mocks": "^1.3.0"
},
"appPath": "app",
"moduleName": "asclepiusApp",
"resolutions": {
"angular": ">=1.2.0"
}
}
答案 0 :(得分:0)
我认为这是在几天前发布角度1.4之后发生的。