Thursday, September 7, 2017

ViewChildren is kinda like ViewChild in the Angular 4 paradigm only for numerous items, perhaps repeating in an *ngFor

You loop it in with:

import { ViewChildren } from '@angular/core';

 
 

@ViewChildren('box') boxes: any; might go in a component and #box in a tag that gets repeated. I don't really understand how to make the most of this yet. This has some details.

No comments:

Post a Comment