mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: update the first app tutorial to include a note about importing NgFor directive (#60627)
PR Close #60627
This commit is contained in:
parent
2d8943122b
commit
88a2c92f87
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ Now the app has a dataset that you can use to display the entries in the browser
|
|||
|
||||
Note, in the code `[housingLocation] = "housingLocation"` the `housingLocation` value now refers to the variable used in the `ngFor` directive. Before this change, it referred to the property on the `HomeComponent` class.
|
||||
|
||||
IMPORTANT: Don't forget to import the `NgFor` directive in your `HomeComponent` class.
|
||||
|
||||
1. Save all changes.
|
||||
|
||||
1. Refresh the browser and confirm that the app now renders a grid of housing locations.
|
||||
|
|
|
|||
Loading…
Reference in a new issue