@danillo10 wrote:
why my DOM is not modified by this.tempo ?
{{ this.mensagemestimada }} {{ this.tempo }}
public temporizador(){ var counter = 0; var timer = setInterval(function() { if( counter >= 10 ) { clearInterval( timer ); } this.tempo = counter; console.log(this.tempo); console.log( counter); counter++; }, 1000); }
Posts: 3
Participants: 2