I'm encountering an error message every time I attempt to utilize $locationProvider. Is there a specific way I should be importing the module?
Error: $injector:unpr
Unknown Provider
Unknown provider: $locationProviderProvider <- $locationProvider
Below is the code snippet in question:
var myApp = angular.module('myApp', [
'duScroll', 'duParallax', 'angularFileUpload', 'ngRoute'
]);
myApp.config(function ($locationProvider) {
$locationProvider.html5Mode(true).hashPrefix('');
});