After creating a basic AngularJS application with the Bootstrap directive, I noticed that some of my pages have tabs. The issue arises when I am on a tab other than the first one and click a link to navigate to another view. Upon returning (using either the back button in the browser or within the application), the previously active tab is no longer highlighted.
My suspicion is that Angular utilizes pushState or a similar method to track previous pages, as the length property of window.history
increases during navigation within the app. Is there a way for me to include additional data in this state information to remember which tab was active?
I attempted using pushState to add a tab parameter to the URL. Although it worked smoothly the first time, subsequent attempts resulted in an Angular loop causing the page to eventually crash. How can I resolve this without triggering such issues?