Open Twois opened 5 years ago
I looked into doing something like this recently and got something working stackblitz. Notice that the "check" contents of the last column comes from the extra-column
component
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
I would like to outsource the columns into a component
What is the current behavior?
I got this error msg:
If I use tag selector instead of attribute selector, I got the this: ERROR Error: Could not find column with id "title". at getTableUnknownColumnError (table.es5.js:651)
What are the steps to reproduce?
The table:
my-field.component.ts
my-field.component.html
What is the use-case or motivation for changing an existing behavior?
There are many case when this mean we can be able to save hundreds of lines.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 7.0.2 material 7.0.2 win 10 typescript 3.1.3
Is there anything else we should know?
I tried with div or ng-template instead of ng-container element, but nothing was good.