Saturday, June 3, 2017

[ngForOf]

I'm not crystal clear as to what this does yet. Instead of having this...

<ng-container *ngFor="let cat of cats">

 
 

...maybe you could have...

<ng-container ngFor let-m [ngForOf]="cats">

 
 

...or per this have:

<ng-container ngFor let-item="$implicit" [ngForOf]="cats">

 
 

I'm not saying these three do the same thing. I don't know that yet.

No comments:

Post a Comment