Lately, I encountered some difficulties with Google indexing due to angular routing. After much trial and error, I discovered that using $locationProvider.html5Mode solved the issue.
However, a new problem has arisen where $window variables lose their value when users navigate between routes within the same page application.
Is there a way to maintain the value of a $window variable between controllers while still having $locationProvider.html5Mode set to true in the same page app?