A

Admin • 825.56K Points
Coach

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'>
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Angular JS
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.