A

Admin • 825.56K Points
Coach

Q. How do you define a route with a parameter in Angular?

  • (A) Using colon syntax like path: 'user/:id'
  • (B) Using ?id in the path
  • (C) Using #id in the path
  • (D) Using @id in the path
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
The colon specifies a route parameter for dynamic routing.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.