set timeout angular code example
Example 1: settimeout in angular
// var that = this; // no need of this line
this.messageSuccess = true;
setTimeout(()=>{ //<<<---using ()=> syntax
this.messageSuccess = false;
}, 3000);
Example 2: timeout httppost angular
const header = new HttpHeaders({
timeout: '600000',
});