I am trying to anularize a legacy asp.net mvc4 application. After the web api http.put is executed inside the angular js controller, I would like the page to be directed to another asp.net mvc4 action/controller. How is it possible?
$scope.saveEditProfile = function () {
$http.put("/api/ProfileWeb", $scope.profile)
.then(function(response) {
$scope.profile = response.data;
});
// need some sort of reroute instruction here to route to asp.net mvc Action = Inedex and Controller =Profile.
};