Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
965 views
in Technique[技术] by (71.8m points)

datatable - Is it possible to content projection in angular material table version 11?

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.

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!

question from:https://stackoverflow.com/questions/65903158/is-it-possible-to-content-projection-in-angular-material-table-version-11

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...