The local source file for AngularJS is not found -


i practicing basic angularjs examples. main issue have been facing angular.min.js file saved on desktop not found. tried using file location 1 example @ plunker, works fine.

this location use in code:

<script src="c:\users\abdul hadi\desktop\angular\lib\angular\angular.min.js"></script> 

and output this:

{{author.name}}  {{author.title + ',' + author.company}} 

but when use this, works fine:

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

you need use file uri scheme (file:///) load local files.

<script src="file:///c:\users\abdul hadi\desktop\angular\lib\angular\angular.min.js"></script> 

i use slashes instead of backslashes , relative path, works anyway.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -