diff options
| author | Daniel Demmel | 2012-09-14 23:37:05 +0100 | 
|---|---|---|
| committer | Vojta Jina | 2013-01-17 16:52:05 -0800 | 
| commit | 8b4432481472f13e995df6dc437d55d87b38b709 (patch) | |
| tree | 3f12820c981298ef0566d7d18ce4eddc582d3915 /docs/content/misc | |
| parent | 9e991ddb1de13adf520eda459950be5b90b5b6d9 (diff) | |
| download | angular.js-8b4432481472f13e995df6dc437d55d87b38b709.tar.bz2 | |
docs: recommend using Google CDN
Diffstat (limited to 'docs/content/misc')
| -rw-r--r-- | docs/content/misc/downloading.ngdoc | 17 | 
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/content/misc/downloading.ngdoc b/docs/content/misc/downloading.ngdoc index 4bfaf70d..2eb82768 100644 --- a/docs/content/misc/downloading.ngdoc +++ b/docs/content/misc/downloading.ngdoc @@ -2,10 +2,9 @@  @name Downloading  @description -# Including angular scripts from the angular server -The quickest way to get started is to point your html `<script>` tag to a -<http://code.angularjs.org/> URL.  This way, you don't have to download anything or maintain a -local copy. +# Including angular scripts from the Google CDN +The quickest way to get started is to point your html `<script>` tag to a Google CDN URL. +This way, you don't have to download anything or maintain a local copy.  There are two types of angular script URLs you can point to, one for development and one for  production: @@ -15,21 +14,25 @@ development.  * __angular-<version>.min.js__ — This is the minified version, which we strongly suggest you use in  production. -To point your code to an angular script on the angular server, use the following template.  This -example points to (non-minified) version 1.0.2: +To point your code to an angular script on the Google CDN server, use the following template.  This +example points to the minified version 1.0.2:  <pre>    <!doctype html>    <html ng-app>      <head>        <title>My Angular App</title> -      <script src="http://code.angularjs.org/1.0.2/angular.js"></script> +      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"></script>      </head>      <body>      </body>    </html>  </pre> +Note that only versions 1.0.1 and above are available on the CDN, if you need an earlier version +you can use the <http://code.angularjs.org/> URL which was the previous recommended location for +hosted code source. If you're still using the angular server you should switch to the CDN version +for even faster loading times.  # Downloading and hosting angular files locally  This option is for those who want to work with angular offline, or those who want to host the  | 
