I'm pretty new to Angular, and I want my code to remember which tab I was on even after I refresh the page or go to another page and then come back. So if I was on tab2 and refresh the browser, I want the page to load tab2 again and not go back to the tab1 as is default with angular material tabs. How would I accomplish this? Thanks!
I'm working with a mat-tab-group that looks something like the following:
<mat-tab-group>
<mat-tab label="Table1">
...
</mat-tab>
<mat-tab label="Table2">
...
</mat-tab>
<mat-tab label="Table3">
...
</mat-tab>
</mat-tab-group>
The "..." is just the table attributes.