How to redirect to 404 or other path if the path does not exist in angular 2?
Answer / Avanish Kumar Pandey
To redirect to a 404 or any other path when a route does not exist, you can use Angular's Route Reusability feature. You create a 'catch-all' route with a wildcard path and define the redirect there.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ngrx?
What is a service angular?
What is a template in angular7?
What methods $resource service object support?
What is zones in angular 2?
What is routing concept in angularjs?
Which language is used in angular?
What is a pure and impure pipe?
Does AngularJS has dependency on jQuery?
What are the advantages of using angular 2?
How to bind selection box with options in the angular js?
What are the cookies methods?