Request Timeout? ?? How to Use Routerlink to Navigate to 3 Pages
I Have a Button (Current Page Is: /Abc) When Click It Navigate to [Routerlink]="['/Loading']"! and I Wanna After Go /Loading(Finish Page Loading) Then It Goes...
I have a button (current page is: /abc) when click it navigate to [routerLink]="['/loading']"! and I wanna after go /loading(finish page loading) then it goes to /animation link, then finally back to /result page. how can I router to 3 links ?? do I need to create func in x.compent.ts ??
1 Answer
You can make a function and add the timeout for the loading route like this:-
setTimeout(() => {
this.router.navigate(["lastpage"]);
}, 2000);