To handle the invalid URLs in angular applications Wildcard Routes are used.  If a developer is building an application and let’s suppose he/she has entered some invalid URL or deleted some existing URL then we all have observed this default error “404 pages not found”.

  In such cases instead of displaying this error, the user can show a custom error page and that is possible only because of the Wildcard route.

BY Best Interview Question ON 22 Sep 2021