Reputation: 1
I have two different aspx pages which operate using AngularJS. One page is to add a post and on clicking save, I want to redirect to the detailpage.aspx. Can this be done using AngularJS?
Upvotes: 0
Views: 1019
Reputation: 1530
$location.path(YOUR_URL); or $location.url(YOUR_URL);
$window.location.href = '/index.html';
Upvotes: 1
Reputation: 969
I do use .aspx Pages as well, and use them as partials, to show their content using ajax. In my opinion you should consider going for a navigation/route provider...
Upvotes: 0
Reputation: 1038930
You could always use plain javascript to make a redirect to another server side resource:
window.location.href = '/detailspage.aspx';
By the way, is there any point of having multiple ASPX pages when using AngularJS? Usually a SPA application has a single entry point and multiple REST API endpoints that will be called by this SPA application using asynchronous requests.
Upvotes: 1