From e946594bf8d1c910c589bceeb6053ee3eba8bea6 Mon Sep 17 00:00:00 2001 From: Manohar Reddy Poreddy Date: Fri, 17 May 2019 11:12:46 +0530 Subject: [PATCH] docs: move instructions to see changes after the error is fixed in the tutorial (#30529) docs: List only appears after the error is fixed When the error happens, the list is not displayed too. Once the error is removed, the heroes list appears, so we can click and see the details. PR Close #30529 --- aio/content/tutorial/toh-pt2.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/content/tutorial/toh-pt2.md b/aio/content/tutorial/toh-pt2.md index 571f14ba6e..6857609016 100644 --- a/aio/content/tutorial/toh-pt2.md +++ b/aio/content/tutorial/toh-pt2.md @@ -164,9 +164,6 @@ When the app starts, the `selectedHero` is `undefined` _by design_. Binding expressions in the template that refer to properties of `selectedHero` — expressions like `{{selectedHero.name}}` — _must fail_ because there is no selected hero. -Now, click one of the list items. -The app seems to be working again. -The heroes appear in a list and details about the clicked hero appear at the bottom of the page. #### The fix - hide empty details with _*ngIf_ @@ -188,7 +185,10 @@ Don't forget the asterisk (*) in front of `ngIf`. It's a critical part of the sy After the browser refreshes, the list of names reappears. The details area is blank. -Click a hero and its details appear. +Click a hero in the list of heroes and its details appear. +The app seems to be working again. +The heroes appear in a list and details about the clicked hero appear at the bottom of the page. + #### Why it works