I’m developing a website in Angular 2 using TypeScript and I was wondering if there was a way to implement thread.sleep(ms) functionality.

My use case is to redirect the users after submitting a form after a few seconds which is very easy in JavaScript but I’m not sure how to do it in TypeScript.

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *