From 3c7ac5f835cd6ac73253c51c5126815830e789a6 Mon Sep 17 00:00:00 2001 From: Nikita Potapenko Date: Fri, 20 Sep 2019 13:14:04 +0300 Subject: [PATCH] docs: add ngOnInit description (#32789) PR Close #32789 --- aio/content/start/routing.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aio/content/start/routing.md b/aio/content/start/routing.md index 7c9c0510cf..37ce975334 100644 --- a/aio/content/start/routing.md +++ b/aio/content/start/routing.md @@ -90,8 +90,16 @@ The product details component handles the display of each product. The Angular R + Angular calls `ngOnInit()` shortly after creating a component. + The route parameters correspond to the path variables defined in the route. The `productId` is provided from - the URL that was matched to the route. You use the `productId` to display the details for each unique product. + the URL that was matched to the route. You use the `productId` to display the details for each unique product. + +
+ + For more information on `ngOnInit()`, see [Lifecycle hooks](guide/lifecycle-hooks). + +
1. Update the template to display product details information inside an `*ngIf`.