How do I direct a user to an absolute URL in AngularJS?
For instance, if I have a page at my current URL (http://example.com/submit), and when the user clicks a button on the webpage, they need to be redirected to a different webpage like ('').
I attempted to use:
$location.absUrl() == 'http://www.google.com'
$location.path('http://www.google.com')
$location.url('http://www.google.com')
However, none of these methods seem to work.
Please Note: The redirection should not happen from the web-server. This is a REST API. I want to accomplish this client-side (using angularjs) so that if the user is authenticated, they are directed to the portal.
Thank you