Closed khicks closed 1 year ago
Bug confirmed. Let me see if I can come up with a way to resolve this.
PR is always welcome :)
Thanks for confirming I'm not crazy! That gave me enough motivation to find a fix, and I think what I have would work. Feel free to give it a look when you have a chance.
Here's a screenshot with the fix in place.
Closing as the fix has been merged.
:beetle: bug report
In Angular 15 for a given table, one cannot use the
visible=false
property on a column when another column usesngTemplateRef
. The properties need not be on the same column. Either one used individually works, but not when both are used on columns in the same table.When I try, I get this nondescript error:
Additionally, the table does not render, and the template renders by itself where it would appear as if it were inline HTML.
:microscope: Minimal Reproduction
Step-by-step Instructions:
In the documentation demo app, add
visible: false
to any column. In my example, I tried the ID column.:8ball: Expected behavior
The TemplateRef column should render and the
visible: false
column should not render.:camera: Screenshots
:globe_with_meridians: Your Environment
Thanks!