Improve this Doc

Including AngularJS 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 AngularJS script URLs you can point to, one for development and one for production:

To point your code to an AngularJS script on the Google CDN server, use the following template. This example points to the minified version 1.5.6:

<!doctype html>
<html ng-app>
  <head>
    <title>My AngularJS App</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
  </head>
  <body>
  </body>
</html>
Note that only versions 1.0.1 and above are available on the CDN. If you need an earlier version (which you shouldn't) you can use the https://code.angularjs.org/ URL, which was the previous recommended location for hosted code source. If you're still using the AngularJS server you should switch to the CDN version for even faster loading times.


Downloading and hosting AngularJS files locally

This option is for those who want to work with AngularJS offline, or those who want to host the AngularJS files on their own servers.

If you navigate to https://code.angularjs.org/, you'll see a directory listing with all of the AngularJS versions since we started releasing versioned build artifacts. Each directory contains all artifacts that we released for a particular version. Download the version you want and have fun.

You can ignore directories starting with 2. (e.g. 2.0.0-beta.17) — they are not related to AngularJS. They contain build artifacts from Angular versions.


Each directory under https://code.angularjs.org/ includes a set of files that comprise the corresponding version. All JavaScript files (except for angular-mocks which is only used during development) come in two flavors — one suitable for development, the other for production:


The set of files included in each version directory are: