ng-for in angularjs code example
Example 1: ng for
<li *ngFor="let user of users; index as i; first as isFirst">
{{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
</li>
Example 2: ng repeat syntax
<div ng-repeat="(key, value) in myObj"> ... </div>
<h1 ng-repeat="x in records">{{x}}</h1>