angular2-swing icon indicating copy to clipboard operation
angular2-swing copied to clipboard

timeout

Open ravi-pandit14 opened this issue 8 years ago • 1 comments

I want to interval 2 seconds before cards adding but set timeout function not proper working in my device. in computer browser the code is running correctly but in android device it stoped when interval is true and donot back to the game start view.....plz help me>?????????? code is here******************************** //when card is empty********************************************* if (this.cards.length == 0) { vm.goToAddCard(); } goToAddCard() { var vm = this; this.game_interval = true; this.game_start = false; setTimeout(() => { alert("Done"); vm.game_interval = false; vm.game_start = true; console.log("game_start==", vm.game_start); console.log("game_interval==", vm.game_interval); vm.addNewCards(); }, 2000); //html code is here********************


.........so on

ravi-pandit14 avatar Sep 29 '17 11:09 ravi-pandit14

Hello, Not sure if this is still an issue, can you please create a plunkr to demo this?

mashhoodr avatar Oct 26 '17 04:10 mashhoodr