I am new to angular.js. And I used the $httpProvider and $locationProvider
<script src="lib/angular/angular.min.js"></script>
<script src="lib/angular/angular-route.min.js"></script>
<script src="lib/angular/angular-cookies.min.js"></script>
angular.module('myApp', [
'ngRoute','ngCookies'
]).config(['$routeProvider' , '$locationProvider', '$httpProvider' ,function($routeProvider) {
$httpProvider.defaults.timeout = 5000; // error
$locationProvider.html5Mode(true); // error
}])
when the app runs, it came out with a error : Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.0-beta.2/$injector/modulerr?p0=myApp&p1=Ref/localhost/lib/angular/angular.min.js)
My angular-min.js, angular-route.js, angular-cookie.js are all in 1.3.0 beta.2, don't know why it is happening?