In beta release, I was accessing the template to repeat for a data component via;
@ContentChild(TemplateRef) itemTemplate: TemplateRef;
With RC0, the error happens is "Generic type 'TemplateRef require 1 type argument(s)"
What kind of type I should define as the generic type? It could be any html content as in;
http://www.primefaces.org/primeng/#/datalist
I believe;
@ContentChild(TemplateRef) itemTemplate: TemplateRef<any>;
should work as I don't necessarily need any specific type except $implicit.
It seems to be working in RC4 using
@ContentChild(TemplateRef) itemTemplate: TemplateRef<any>;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With