Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

DOM not modified by var

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>