原来,角度 v1.2.0rc1 是问题所在;由于某种原因,我的凉亭配置没有正确更新 angulars 库。
老的:
{
"name": "App",
"version": "0.0.1",
"dependencies": {
"angular": "~1.2",
"angular-route": "~1.2",
"angular-route": "~1.2",
"json3": "~3.2.4",
"es5-shim": "~2.0.8"
},
"devDependencies": {
"angular-mocks": "~1.2",
"angular-scenario": "~1.2"
}
}
新的:
{
"name": "App",
"version": "0.0.1",
"dependencies": {
"angular": "1.2.0-rc.2",
"angular-route": "1.2.0-rc.2",
"angular-animate": "1.2.0-rc.2",
"json3": "~3.2.4",
"es5-shim": "~2.0.8"
},
"devDependencies": {
"angular-mocks": "1.2.0-rc.2",
"angular-scenario": "1.2.0-rc.2"
}
}
干杯!