Directive pResizableColumn causes NullInjectorError if it is added from component's content #3207
Unanswered
ArturGudiev
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple table from docs with resizable columns
I need a table wrapper for some purposes but for that I need to form header and body templates outside the table-wrapper component. Let's start only with header templates. So here is my parent component (app.component.html)
and here is my table-wrapper component
table-wrapper.component.ts
table-wrapper.component.html
The problem is that for some reason pResizableColumn directive causes NullInjectorError.
But If I add the whole table to any of 2 components fully (app.component or table-wrapper.component) no error will be shown. Is there a possible solution to get rid of this bug?
Here is a link of this project in code sandbox
Beta Was this translation helpful? Give feedback.
All reactions