Replies: 1 comment
-
That's because directives are connected together with DI, and in your case they are instantiated away from the table itself. I think this might get fixed in 4.0, once polymorpheus starts passing injector to templates. In current version it is impossible due to Angular 12. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i am trying to pass a table cells template to a table component, but the rows are not getting rendered.
In this very basic example with static content, i am passing the columns and the template, which is supposed to render the content.
The table component receives the template as
PolymorpheusContent
and is trying to render it in the body. The exact same layout directly in the component is working fine, but the template will only render empty rows.Am i doing something terrible wrong, or is this use case not supported by the table?
Here is a link to the full example on Stackblitz -> https://stackblitz.com/edit/angular-tck61i?file=src%2Fapp%2Fapp.component.html
Every help is appreciated! Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions