Using filterConstraint.value for filter template value binding instead of value #2208
Replies: 1 comment
-
Sure thing! Here’s how you can set up custom filters in your table components more effectively, especially if you're using Angular with strict type checking turned on. How to Use
|
Beta Was this translation helpful? Give feedback.
-
Currently the table example with custom filters (sample and filter) use the implicit value of the filter template for binding - this is only possible with strictTemplates compiler option disabled but still bad practice ("Template variables are read-only").
Instead we could use filterConstraint.value for value binding - which is already provided as template variable. This would also allow the strictTemplates options to be enabled.
Beta Was this translation helpful? Give feedback.
All reactions