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
This commit is contained in:
parent
abe4433202
commit
e946594bf8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue