Submodule 21.2: Single Page Applications - Practice

Introduction

In this submodule, you will integrate the dishdetail component into your application. You will use a route parameter in the URL to pass in the details of the selected dish to the dishdetail component. You will:

  • Configure the routes in your router module to enable the use of route parameters within the URL to pass information to a component.

In this image you can see the parameter for the "45% MILK CHOCOLATE" which is 2. Every Choco-dish has its own parameter.