For <a> tags:
You need to stick target="_self" on your <a> tag
There are three cases where AngularJS will perform a full page reload:
- Links that contain target element
Example:<a href="https://stackoverflow.com/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 “https://stackoverflow.com/” that lead to a different base path when base is defined
Example:<a href="https://stackoverflow.com/not-my-base/link">link</a>
Using javascript:
The $location service allows you to change only the URL; it does not allow you to reload the page. When you need to change the URL and reload the page or navigate to a different page, please use a lower level API: $window.location.href.
See:
- https://docs.angularjs.org/guide/$location
- https://docs.angularjs.org/api/ng/service/$location