Using AngularJs UI Router and global variables in single page application
By : user3541919
Date : March 29 2020, 07:55 AM
I wish this helpful for you I don't think you should store user's selected options in Global variable because these aren't common variable to be used throughout the user session. You can save it in database when user redirects to 2nd page and retrieve on score view screen. Also, You may need this information in future to retain the user's records. EDIT - In case you can not store data in database and storing data at client side is only option then local storage can be used.