#ngmodel with null value on select
4 messages · Page 1 of 1 (latest)
4 messages · Page 1 of 1 (latest)
https://stackblitz.com/edit/angular-yg63y2nf?file=src%2Fmain.ts,src%2Fapp%2Ffeatures%2Fpollutant%2Fc
PollutantsSelect at line 32
I use a select with an ngModel
the select must be initialized with a subject but I have a problem with handling the null.
?? null will be a ble to handle falsy0.
this._storePollutant.getPollutantSelectedValue()?.id ?? null;
great, thanks....