Describe the bug
When using angular/router ang changing routes, the sidebar entries get duplicated/triplicated/etc. It seems that the Observable of buttons never clears up and each time my map is reloaded, the previous sidebar entries are kept and a new batch is loaded on top of them
To Reproduce
Steps to reproduce the behavior:
Configure angular routes and put the hslayers map in one of those routes (e.g. /map)
Navigate back and forth from /map do one of the other routes.
Sidebar entries are never cleared and are loaded on top of each other.
Expected behavior
The sidebar entries should remain the same.
Screenshots
go to /home
go to /map
Additional context
I uploaded my code here and a video of this behaviour here
Bug
Describe the bug When using angular/router ang changing routes, the sidebar entries get duplicated/triplicated/etc. It seems that the Observable of buttons never clears up and each time my map is reloaded, the previous sidebar entries are kept and a new batch is loaded on top of them
To Reproduce Steps to reproduce the behavior:
Expected behavior The sidebar entries should remain the same.
Screenshots go to /home go to /map
Additional context I uploaded my code here and a video of this behaviour here