Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

ng for

<ul>
<!-- display an li tag that has the persons name-->
<!-- for for each person in array of people -->
<!-- (The people Arrray is defined in TS file associated with this component) -->
  <li *ngFor="let person of people"> (1)
    {{ person.name }}
  </li>
 </ul>
Source by codecraft.tv #
 
PREVIOUS NEXT
Tagged: #ng
ADD COMMENT
Topic
Name
2+1 =