I'm building a quiz using AngularJS and UI Router.
I have my app structured like this:
- intro screen
- app screen (where you play the actual quiz)
- results screen (where i display the score)
The app use the same controller (MainCTRL). I store in the MainCTRL in $scope.score the score.
The problem is that when I $state.go('results'); the controller is being reseted I think and the $scope.score is equal to 0.
How can I fix this problem?