diff --git a/aio/content/start/start-routing.md b/aio/content/start/start-routing.md index 96677917a68..212c743acd6 100644 --- a/aio/content/start/start-routing.md +++ b/aio/content/start/start-routing.md @@ -60,11 +60,11 @@ The Angular Router displays components based on the browser's URL and [your defi In this section, you'll use the Angular Router to combine the `products` data and route information to display the specific details for each product. -1. In `product-details.component.ts`, import `ActivatedRoute` from `@angular/router`, and the `products` array from `../products`. +1. In `product-details.component.ts`, import `ActivatedRoute` from `@angular/router`, import `OnInit` from `@angular/core`, and the `products` array from `../products`. -1. Define the `product` property. +1. Define the `product` property. The `implements OnInit` statement indicates that the class implements the `OnInit` interface, requiring the implementation of the `ngOnInit` method for initialization tasks when the component is created.