. Advertisement .
..3..
. Advertisement .
..4..
How To Set Timeout In Angular 8? I have researched and tried several ways but still no results. If you know please tell me how to do it!
How To Set Timeout In Angular 8
In this case, you can use SetTimeout() method, which is function which executes code snippets after delaying a certain time limit.
Here is example:
// var that = this; // no need of this line
this.messageSuccess = true;
setTimeout(()=>{ //<<<---using ()=> syntax
this.messageSuccess = false;
}, 3000);
Can you try this and tell me if it works