ngFor

@Component({
    template: `
    <h1>{{ title }} ({{title.length}})</h1>
    <input [(ngModel)]="title">
    <h2 *ngIf="title.length>15"> the title is long!!!</h2>
    <button (click)="click()">my button</button>
    <br/>
    <ul>
-   <li>
    <li *ngFor="let o of orders">
-       Order: {{orders[0].orderId}}<br/>
        Order: {{o.orderId}}<br/>
-       Customer: {{orders[0].customerId}}
        Customer: {{o.customerId}}
    </li>
    </ul>
`
}) 

Commit info on GitHub


Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com