Problem installing AngularJs

0

I'm having trouble installing AngularJs, but I'm pretty sure what's wrong is the src path and where I put the angular files (in which folder).

If possible, report;

  • What angular files do I need?

  • In which folder do I put the files from the angle?

  • What is the path I describe in src ?

  • asked by anonymous 23.02.2017 / 01:23

    1 answer

    2

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

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

    Ifyouareusingthefileyoudownloadedfromthe official page you need to put it somewhere where you can access it externally. Let's say you put it in the root of your project, so the import will look like this:

    <script type="text/javascript" src="./angular.js"></script>
    
        
    23.02.2017 / 04:34