I've encountered an issue while working with route provider. I'm trying to access a different path on my localhost:8080/showThemes.html page using the following method:
<a ng-href="#/category/{{themes.theme}}">
<img class="imgCenter" ng-src="{{themes.image}}">
</a>
In my controller, the code I've written is:
var showThemes = angular.module('showThemes',['ngCookies','ngRoute'])
.config(function ($routeProvider, $locationProvider) {
// configure the routing rules here
$routeProvider.when('/category/frozen/', {
templateUrl: '../frozen.html',
controller: 'showFrozenController',
});
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
})
Although there are no errors in the console, the page doesn't redirect to frozen.html.
Any ideas on how to resolve this issue?