Button stops working after pressing other buttons.

8 views
Skip to first unread message

Phil

unread,
May 17, 2018, 1:20:30 PM5/17/18
to Angular and AngularJS discussion
On this website http://freecoin.tk/ 
When a quiz is complete and then you select a new quiz it doesn't load the new quiz. 

I can't tell why. It seems like the only difference when the quiz completes is this.show=0 
else {
     this.show = 0;
     this
       .userService
       .updateUser();
   }
https://github.com/7--/freecoin-frontend/blob/master/src/app/question/question.component.ts

this.show is a boolean that's used in the html to show either a question or the quiz complete message. 
But I change that back when the quiz is selected.
Reply all
Reply to author
Forward
0 new messages