Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular timeout function

// var that = this;                        // no need of this line
this.messageSuccess = true;

setTimeout(()=>{                           // <<<---using ()=> syntax
    this.messageSuccess = false;
}, 3000);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #timeout #function
ADD COMMENT
Topic
Name
3+3 =