Repeating Over Data with ngFor

preview_player
Показать описание

Get the course files!

Get the course files!

When it comes down to it, web apps are mostly just a mechanism for listing out data on a screen. To do this effectively, most single page app frameworks provide a mechanism to repeat over a collection of data within a single template. In this video we'll use Angular's NgFor directive to loop over our list of Cribs and then interpolate values in the dataset out to the screen.
Рекомендации по теме
Комментарии
Автор

if you get an error installing bootstrap, for some reason, angular cli wants to install bootstrap 2, I had to install 3. and make sure you do not have the ../node_modules/..., Instead get rid of ../ and just use "node_modules/... etc.

dev_apostle
Автор

Possible problem: If you already started "ng serve" and then create the data/cribs.ts, the data is not updated. Just restart the ng serve.

ragsnasramoninus