title: How to add a delay in angular component?
body: <p>I have an angular component inside a modal dialog. When the dialog is closed, I want to delay closing of the modal dialog.</p>
  
  <p>How can I add delay for 5 seconds inside an Angular component before closing it?</p>