Sorry there was a typo, it should have been:
@ContentChild('child', { read:TemplateRef, static:false }) myChild:
TemplateRef<any>;
On Friday, January 17, 2020 at 2:06:49 PM UTC+1, frabbit wrote:
>
> Hmm, thx
>
> thx, but i cannot catch the templateRef via
>
>
> @ContentChild('a', { read:TemplateRef, static:false }) a: TemplateRef<any>
> ;
>
> inside of parent. And this works fine in my desugared version.
>
>
>
>
>
>
> On Friday, January 17, 2020 at 1:51:59 PM UTC+1, Sander Elias wrote:
>>
>> Hi Frabbit,
>>
>> Yes, not a problem. You can do something like this:
>> <div *myTemplate #child1>...</div>
>>
>> and the div will end up in the template.
>>
>> Regards
>> Sander
>>
>
--
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/7e87278e-706c-448f-bb56-f744e83f1a1d%40googlegroups.com.