javascript 在谷歌 CDN 上找不到角度路由 js
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33061114/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
can't find angular route js on google cdn
提问by zero
this may seem like a very basic question but I can't seem to find the route angular resources on the google developer cdn (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.route.js) even though the official docs say to find it there (https://code.angularjs.org/1.4.7/docs/api/ngRoute) I know I could use bower or npm to include them in my project, but I wanted to gain the benefits of static files served over a cdn (especially google's)
这似乎是一个非常基本的问题,但我似乎无法在谷歌开发者 CDN ( https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.route. js) 即使官方文档说要在那里找到它 ( https://code.angularjs.org/1.4.7/docs/api/ngRoute) 我知道我可以使用 bower 或 npm 将它们包含在我的项目中,但我想要获得通过 CDN 提供的静态文件的好处(尤其是谷歌的)
回答by scniro
Change the following...
更改以下...
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.route.js
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.route.js
to
到
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular-route.js
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular-route.js
difference?
不同之处?
angular.route
=> angular-route
angular.route
=> angular-route