×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Nov 17, 2017 8:12 AM
Views: 2
Tags: no tags
  1. // var that = this; // no need of this line
  2. this.messageSuccess = true;
  3.  
  4. setTimeout(()=>{    //<<<---    using ()=> syntax
  5.       this.messageSuccess = false;
  6.  },3000);