I am currently working on integrating Angular with a REST API for the login process.
After successfully setting up Angular with my REST calls, I aim to redirect to a new page upon successful login.
In my success handler, I have implemented the following code:
$location.path("/home")
This is how my route provider is configured:
$routeProvider.when('/home',{
templateUrl: 'templates/test.html',
controller: 'HomeController'
})
Within my view, I have included an HTML tag like this:
<div ng-view></div>
Everything is functioning as expected, but I desire for the ng-view
to load an entirely new page instead of just the template. This transition should occur right after logging in.
Is there a way to achieve this?
Thank you in advance.