Today I realized about an unexpected (for me) behaviour of the reactive forms in Angular 5. The server was receiving from the app an string with the value "null" i
const items = ["foo", "bar", "baz"]
{{item}}
using [value] when one of the options is selected the value will be foo, bar, baz
[value]
foo
bar
baz
using [ngValue] when one of the options is selected the value will be 0: foo, 1: bar, 2: baz
[ngValue]
0: foo
1: bar
2: baz