Closed
Description
Feature Description
The input cdkOptionTypeaheadLabel
of CdkOption
should allow undefined
as an input type
Use Case
I am using the cdkListbox
internaly in a library. For this list, we allow users to provide an optional typeahead label.
When building the option I would like to write it like this:
<div [cdkOption]="value" [cdkOptionTypeaheadLabel]="optionalLabel">...</div>
However this is a compiler error. When adding an $any()
cast everything works fine.