Translate

24 Şubat 2016 Çarşamba

injector:modulerr error

Hi friends

I have faced with an error

angular.min.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.7/$injector/modulerr?p0=dataApp&p1=Referenc…oogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A19%3A83)

and it says also Failed to instantiate module dataApp due to:
ReferenceError: $locationProvider is not defined
    at http://localhost:8181/demo/app7.js:13:2

when I remove " $locationProvider.html5Mode(true); "  I solved the problem

app.config([ '$routeProvider', function($routeProvider) {
$routeProvider.when('/test', {
templateUrl : 'test2.jsp',
controller : 'ListController'
}).otherwise({
redirectTo : '/test'
});
$locationProvider.html5Mode(true);
} ]);


Hiç yorum yok:

Yorum Gönder

Bu Blogda Ara