NotoriousWebmaster NotoriousWebmaster - 2 years ago 173
AngularJS Question

Angular map file not found

I've just downloaded a fresh copy of angular.min.js, and I'm getting a 404 on, which I'm not including in my code:

<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/angular.min.js"></script>

The error in Chrome:

GET 404 (Not Found)

Answer Source

Open the angular.min.js file in a text editor. There will be a comment at the end like this:


Delete that and the error will disappear.

A map file facilitates regenerating the minified version of a script based on changes to a non-minified version. Since you won't be making changes to angular.js, you don't need the map.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download