Localhost

0

I can not link Angular in my project.

This is my Structure:

IdownloadedtheAngularviaBowerandtolinkitIusedthefollowingScriptinmyViewssrc="../../../ bower_components / angular / angular.min.js" script >

But when I'm going to do a simple test of the type:

{{test}}

The browser returns

GET link net :: ERR_ABORTED

Someone help me please

    
asked by anonymous 05.06.2018 / 18:09

1 answer

0

You probably are not finding the file because of the configuration that was made for localhost (for example, putting the server to point to src folder and directly linking a file in the code to a higher folder). Add the script via cdn as in the example below, if that works then that is it. But if you want to use the angle in a project it is better to generate an app since everything is set up.

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>

<div ng-app>
  <p>1 + 1 é igual a {{ 1 + 1 }}</p>
</div>
    
06.06.2018 / 05:40