Well, viewChild returns the occurrence of the template var. ngFor probably 
has multiple. also, its getting set afterViewInit.
Try using @viewChildren it has a queryList that you can iterate over for 
multiple instances

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/ef2fd72f-db08-45a1-91ff-1f5378adf05c%40googlegroups.com.

Reply via email to