You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the AsyncPipe of angular potentially returns null, which cause a compile error when using the async-pipe for the options of a dropdown like this:
<p-dropdown ..... [options]="options$ | async" />
It would be great to allow the options to be null (for now only undefined and [] is allowed):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Unfortunately the AsyncPipe of angular potentially returns null, which cause a compile error when using the async-pipe for the options of a dropdown like this:
<p-dropdown ..... [options]="options$ | async" />
It would be great to allow the options to be null (for now only undefined and [] is allowed):
set options(val: any[] | undefined)
The only workaround for now is this ugly code:
[options]="(countries$ | async) || []"
Beta Was this translation helpful? Give feedback.
All reactions