I want to reload the whole page through module.js
.
Calling controller
$state.go("app.home");
$stateProvider
.state('app.home', {
url: '/home',
data: {
title: 'About'
},
views: {
"content@app": {
templateUrl: 'app/home/views/home.html',
controller: 'HomeController'
}
}
})
Now I'm using location.reload for reloading the page. But when I putted location.reoload in HomeController then it is reloading infinite time. That's why I want to reload only first time my page through $stateprovider
. I've seen one link How to reload or re-render the entire page using AngularJS.
But I'm not able to solve my problem, Because I want to reload the page through Module.js.
And $state.reload();
is refresh the state not reload the page.