Friday, January 24, 2020

In Angular 8 there is a second property needed at the second property for a @ContentChild it seems.

What you see here must become:

@ContentChild('templateReference', {read: TemplateRef, static: true}) templateInstance:
      ContentChild;

 
 

Of the "static" addition this offers: True to resolve query results before change detection runs, false to resolve after change detection.

No comments:

Post a Comment