OpenWaterFoundation / owf-app-snodas-ng

Open Water Foundation SNODAS snowpack user interface built with Angular
0 stars 0 forks source link

Use cookie to save selected basin #33

Closed Nightsphere closed 2 years ago

Nightsphere commented 2 years ago

Catherine has used the ngx-cookie npm package and recommended to be used in SNODAS. Use the service to help save the application state and display a selected basin on the map, even after a refresh or navigation to another of the SNODAS tabs.

Nightsphere commented 2 years ago

The service works as expected, and a little unexpected as well, but not necessarily as in a bad way. A basin that has been previously clicked on will be remembered on a hard refresh, on a navigation to another SNODAS tab and back, and even when the local server is killed and served again. Closing this issue.