Question · Angular course · Module 4: Routing
Path parameter syntax
How do we mark a path parameter in a route definition, e.g. a samurai's id?
Answer options
- path: 'samurai/{id}'
- path: 'samurai/:id'
- path: 'samurai/[id]'
- path: 'samurai/$id'
You can check the correct answer by solving this task in the CodeWorlds game.