While working on a Single Page Application (SPA) using AngularJS, I encountered an issue with storing user data in an Angular Value service. I realized that the data was not being shared between browser tabs, leading to constant requests to the server for details like full name and email upon page refresh (F5). My solution so far has been utilizing a REST API.
However, I am unsure if this approach is efficient. Would switching to localStorage be a better alternative for sharing data between tabs? I am seeking advice on the best technique to handle this situation.