Problem in the installation of Angularjs

Asked

Viewed 34 times

0

I’m having trouble installing the Angularjs, but I’m pretty sure what this wrong is the way of src and where I place the angular files (in which folder).

If possible, inform;

  1. What Angular files do I need?

  2. Which folder do I put the angular files in?

  3. Which is the way I describe in src?

  • Which version of Angular you’re trying to use?

  • Welcome to Stackoverflow in English. A good practice to start a healthy discussion is to read the Guide to How to Ask. Start by following these recommendations, especially knowing what types of questions to ask, how to create a minimal example that is complete and verifiable, and even what to do when someone answers you.

1 answer

2

The only file required is the angular.js or the angular.min.js. If you are using the CDN file will look like this:

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

If you are using the file you downloaded from official page you need to put it somewhere where it is possible to access it externally. Let’s say you put it at the root of your project, then the import will look like this:

<script type="text/javascript" src="./angular.js"></script>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.