I wanted to display a page for 'n' seconds and then redirect to another route.
Came across a couple of stackoverflow posts (url1 and url2) about auto redirecting after 'n' seconds in Angular 1.x. But I m confused how to implement the same in Angular2?
You can inject and use
Router
from@angular/router
and navigate insetTimeout
.