docs: fix tutorial indicating the app is working when an error is actually displayed (#40732)
PR Close #40732
This commit is contained in:
parent
d58747de8a
commit
fdd55c9ec7
|
@ -48,7 +48,7 @@ Make it look like this:
|
|||
|
||||
<code-example path="toh-pt2/src/app/heroes/heroes.component.1.html" region="list" header="heroes.component.html (heroes template)"></code-example>
|
||||
|
||||
That shows one hero. To list them all, add an `*ngFor` to the `<li>` to iterate through the list of heroes:
|
||||
That displays an error since the property 'hero' does not exist. To have access to each individual hero and list them all, add an `*ngFor` to the `<li>` to iterate through the list of heroes:
|
||||
|
||||
<code-example path="toh-pt2/src/app/heroes/heroes.component.1.html" region="li">
|
||||
</code-example>
|
||||
|
|
Loading…
Reference in New Issue