angular – dynamic contents of a component

I'm trying to create a card component that is reusable, but when I went to do a usage test, I gave this error

    ERROR TypeError: templateRef.createEmbeddedView is not a function

Card.HTML

Card.component.ts

@ContentChild (& # 39; title & # 39 ;, {static: true}) title: TemplateRef;

@ContentChild (& # 39; containerPrimary & # 39 ;, {static: true}) containerPrimary:
TemplateRef;

@ContentChild (& # 39; containerSegundary & # 39 ;, {static: true})
ContainerSecond: TemplateRef;

ngOnInit () {

}

PageView.html


 
card title test
Primary
High school

How can I be wrong?