2
2
@name Downloading
3
3
@description
4
4
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.
9
8
10
9
There are two types of angular script URLs you can point to, one for development and one for
11
10
production:
@@ -15,21 +14,25 @@ development.
15
14
* __angular-<version>.min.js__ — This is the minified version, which we strongly suggest you use in
16
15
production.
17
16
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:
20
19
21
20
<pre>
22
21
<!doctype html>
23
22
<html ng-app>
24
23
<head>
25
24
<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>
27
26
</head>
28
27
<body>
29
28
</body>
30
29
</html>
31
30
</pre>
32
31
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.
33
36
34
37
# Downloading and hosting angular files locally
35
38
This option is for those who want to work with angular offline, or those who want to host the
0 commit comments