Downloading and Installing AngularJS via CDN

If you want to use AngularJS in your webpage , you just need to point the <script> tag in the page to the AngularJS file. You can either download the AngularJS script file to your project and use it from there or use CDN (Content Delivery Network).

How to download and install AngularJS via CDN ?

You just need to add the below script within the head tag of your HTML page to get started.

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>

Note that the stable version of AngularJS when the article was written was version 1.4.9 and that’s the one which is included in the script tag.

The above script refers to the minified version of AngularJS and improves the loading of your app when compared with the non-minified version.

%d