ngRoute错误,版本冲突

时间:2015-05-28 19:00:40

标签: javascript angularjs url-routing

尝试安装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"
}
}

1 个答案:

答案 0 :(得分:0)

今天和我的同事发生了类似的事情。他决定更换&#34; ^ 1.3.x&#34;到&#34; 1.3.x&#34; in&#34; angular-cookies&#34; &#34;角度消毒&#34;。检查是否以角度路径更改它可以解决问题。

我认为这是在几天前发布角度1.4之后发生的。