Currently, I am utilizing Bootstrap 4 and AngularJS for the development of an application. Within this, I am incorporating a modal that includes navigation tabs from Bootstrap 4. However, I am encountering an issue where the navigation tabs use hrefs that are added to the URL in the address bar. This poses a challenge because the angular module includes:
$rootScope.$on('$locationChangeStart', function () {
...
});
In addition, I am utilizing $routeProvider for routes such as "/", "/login", and "/register". With this setup, every time I switch between tabs in the modal, the background refreshes, which results in multiple requests being sent to the server.
Thus, I attempted to create a simple fiddle to showcase this behavior. Upon changing the tab, you will notice the URL getting modified (there is a setInterval function present, so please check the console for details).
To view the fiddle, click on the following link: http://jsfiddle.net/pxbndo3z/1/
What steps can I take to resolve this issue?