How do I bypass the routing provided by angular? For instance, in my angular routing settings, I have set $routeProvider.otherwise({redirectTo : '/someurl'});
.
I want a certain request (generated by the user clicking a certain link in the HTML) to go to my webserver and not redirected to /someurl
by Angular's routing. How do I do this?
From the $location docs:
In cases like the following, links are not rewritten; instead, the browser will perform a full page reload to the original link.
Links that contain target element. Example:
<a href="/ext/link?a=b" target="_self">link</a>
Absolute links that go to a different domain. Example:
<a href="http://angularjs.org/">link</a>
Links starting with '/' that lead to a different base path when base is defined. Example:
<a href="/not-my-base/link">link</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With