adspace
How to redirect to 404 or other path if the path does not exist in angular 2?
Answer Posted / 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 |
Post New Answer View All Answers
How can primeng be used with angular2?
How to create angularjs filter which outputs html?
How to enable html5 mode in angular 1.x?
What is a dynamic route in angularjs and how do you implement it?
How to get and log an error in angular 4?
What is the latest angular?
Angularjs dependency injection of value inside of the module.config?
How an object or function can get a hold of its dependencies?
Which version you are using js?
What is the latest version of angular?
How to use primeng in angular 4?
Give the example of angularjs strings?
How to implement a datagrid table with angular 2 and primeng?