JDavila
JDavila

Reputation: 449

How to use AngularJS using CDN?

Say that an app needs to be created using AngularJS with Cordova in Visual Studio, do I require anything else besides the Google CDN to use AngularJS?

<!doctype html>
<html ng-app>
  <head>
    <title>My Angular App</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
  </head>
  <body>
  </body>
</html>

I notice that npm is usually used to install AngularJS, though if just a simple app needs to be created, could this be sufficient.

Code from: https://docs.angularjs.org/misc/downloading

Upvotes: 0

Views: 1993

Answers (1)

Larry Turtis
Larry Turtis

Reputation: 1916

That's all you need. I find installing angular locally is great for development, since I use developer tools to disable caching and I don't want to ping the CDN everytime I update a view, but for quick projects the CDN is fine.

Upvotes: 1

Related Questions