I am creating a hybrid quiz application with AngularJS. I have below pseudo code,
- index.html where user selects the quiz.
- 2nd page using ui-view Quiz is rendered and user selected options are stored in a global array (Should I use global here ?)
- The values in array are compared with values in answer array (should answers array be global? This array is created by querying the database and on each new quiz this array has to change as this will select questions randomly.)
- Will both the arrays be carried forward to the score view (when using them as local arrays or I need to to make them global or they will not be carried to next view?)
I am new to single page application and UI-Router so don't know how does it all work.