Got a question regarding angular material v11. I want to make a content projection to display cells which I need for business purposes. All I did right now is something like that:
Here you can find a sample from stackblitz
Unfortunately, I got an error which means: Cannot read property 'template' of undefined. As I'm looking to object matColumnDef there are some fields which missing like MatHeaderRowDef and MatFooterRowDef.
Cannot read property 'template' of undefined
matColumnDef
MatHeaderRowDef
MatFooterRowDef
To do that I used this sample which works fine:
working sample
Do you know how could I potentially solve this issue? Nice to see all tips!
1.4m articles
1.4m replys
5 comments
57.0k users