Wildcard Route
noun
say it: “WYLD-kard ROWT” /ˈwaɪldkɑːrd raʊt/
An Angular route with the path ** that matches any address, used last to show a not-found page.
What is Wildcard Route in Angular?
Wildcard Route — A route with the path **, which matches any address. The router tries routes in order, so it goes last and catches everything no other route matched, usually to show a "page not found" component.
export const routes: Routes = [
{ path: 'products', component: ProductList },
{ path: '**', component: NotFound },
];
In a sentence
- “The wildcard route shows our Not Found page for any address we don't have.”
Level: Apprentice · More Angular terms at this level
Updated