πŸ“Š Angular
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 }
πŸ’¬ Discuss
βœ… Correct Answer: (A) { path: '**', component: PageNotFoundComponent }

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

Explanation by: Mr. Dubey
`**` is used as a wildcard route to catch undefined paths.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate