Reputation: 559
On button click i am calling a function like this
<a href="#" ng-click="submit()">Submit</a>
My controller code is like this
$scope.submit = function(){
$state.go('app.calendar');
}
This code is taking me to calendar page. But after that page should reload. Can anybody help me..
Upvotes: 0
Views: 1382
Reputation: 2148
use this::
$scope.submit = function(){
$location.path('/calendar'); //need to add the path of calendar page
}
Upvotes: 2