When a user in my current application clicks the Refresh button on their browser, the entire application reloads and redirects them to the Home Page. However, I have a requirement to keep the user on the same page without reloading the application. Despite searching through numerous StackOverflow links, I have not been able to find a solution that meets my needs. Any assistance would be greatly appreciated.
I am working with angular 1.3.17 and utilizing $stateProvider for routing between states. All data is stored in the $rootScope, so when the user refreshes the page, $rootScope gets destroyed and the application must be reloaded from scratch.
My main goal is to prevent the entire app from loading again and only load the specific page the user is currently viewing.