Put in order · Angular course · Module 4: Routing
Calling navigate()
Arrange on one line the navigation call to /samurai with the id parameter:
Items to put in order
- );
- this.router
- ['/samurai', id]
- .navigate(
You can check the correct answer by solving this task in the CodeWorlds game.