A

Admin • 833K Points
Coach

Q. How do you define a wildcard route in Angular?

  • (A) { path: '**', component: PageNotFoundComponent }
  • (B) { path: '*', component: PageNotFoundComponent }
  • (C) { path: '?', component: PageNotFoundComponent }
  • (D) { path: 'all', component: PageNotFoundComponent }
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`**` is used as a wildcard route to catch undefined paths.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.