I am using angular ui-router. It has state in each routing, but I am not able to reload the state. Here are my code
app.config(function ($urlRouterProvider, $stateProvider) {
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('home', {
url: "/home",
controller: 'HomeController',
views: {
"viewHome": {
templateUrl: "home.html"
},
})
}
in HTML
<a href="#/home">Home</a>
When I clicked on Home link then it redirected to home url but when I was trying to click again the home link then its not refresh the same state, It must be refresh the home state and again call the HomeController. Please give me some solution for this.