Put in order · Angular course · Module 4: Routing

Parameter reading cycle (Observable)

Order the lines of a route parameter subscription (top to bottom, as in the component):

Items to put in order

  • this.samuraiId = params.get('id') ?? '';
  • this.route.paramMap.subscribe(params => {
  • });

You can check the correct answer by solving this task in the CodeWorlds game.