Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8b44324

Browse files
Daniel Demmelvojtajina
Daniel Demmel
authored andcommitted
docs: recommend using Google CDN
1 parent 9e991dd commit 8b44324

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docs/content/misc/downloading.ngdoc

+10-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
@name Downloading
33
@description
44

5-
# Including angular scripts from the angular server
6-
The quickest way to get started is to point your html `<script>` tag to a
7-
<http://code.angularjs.org/> URL. This way, you don't have to download anything or maintain a
8-
local copy.
5+
# Including angular scripts from the Google CDN
6+
The quickest way to get started is to point your html `<script>` tag to a Google CDN URL.
7+
This way, you don't have to download anything or maintain a local copy.
98

109
There are two types of angular script URLs you can point to, one for development and one for
1110
production:
@@ -15,21 +14,25 @@ development.
1514
* __angular-<version>.min.js__ — This is the minified version, which we strongly suggest you use in
1615
production.
1716

18-
To point your code to an angular script on the angular server, use the following template. This
19-
example points to (non-minified) version 1.0.2:
17+
To point your code to an angular script on the Google CDN server, use the following template. This
18+
example points to the minified version 1.0.2:
2019

2120
<pre>
2221
<!doctype html>
2322
<html ng-app>
2423
<head>
2524
<title>My Angular App</title>
26-
<script src="http://code.angularjs.org/1.0.2/angular.js"></script>
25+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"></script>
2726
</head>
2827
<body>
2928
</body>
3029
</html>
3130
</pre>
3231

32+
Note that only versions 1.0.1 and above are available on the CDN, if you need an earlier version
33+
you can use the <http://code.angularjs.org/> URL which was the previous recommended location for
34+
hosted code source. If you're still using the angular server you should switch to the CDN version
35+
for even faster loading times.
3336

3437
# Downloading and hosting angular files locally
3538
This option is for those who want to work with angular offline, or those who want to host the

0 commit comments

Comments
 (0)