πŸ“Š Angular
Q. How do you define a route in Angular?
  • (A) { path: 'home', component: HomeComponent }
  • (B) <route path='home'>Home</route>
  • (C) Route('home', HomeComponent)
  • (D) <ng-route path='home' component='HomeComponent'>
πŸ’¬ Discuss
βœ… Correct Answer: (A) { path: 'home', component: HomeComponent }

Explanation: Angular routes are defined as objects with a path and component.

Explanation by: Mr. Dubey
Angular routes are defined as objects with a path and component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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