Improve this Doc

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:

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.4.5:

<!doctype html>
<html ng-app>
  <head>
    <title>My Angular App</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/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 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 angular files on their own servers.

If you navigate to http://code.angularjs.org/, you'll see a directory listing with all of the angular versions since we started releasing versioned build artifacts (quite late in the project lifetime). Each directory contains all artifacts that we released for a particular version. Download the version you want and have fun.

Each directory under http://code.angularjs.org/ includes the following set of files: