title: Differences between value and ngValue in Angular 5
body: <p>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 &quot;null&quot; instead of the null value, whichh is what I wanted.</p>
  <p>I did the following test:</p>
  <p><a href="https://stackblitz.com/edit/angular-rjrspr?file=app%2Fapp.component.html" rel="noreferrer">https://stackblitz.com/edit/angular-rjrspr?file=app%2Fapp.component.html</a></p>
  <p>As you can see in the picture below, if I use <code>[value]=&quot;null&quot;</code> in the select, the field is getting &quot;null&quot; (string literal) as value. However, if I use <code>[ngValue]=&quot;null&quot;</code> it gets the expected <code>null</code> value.</p>
  <p><a href="https://i.stack.imgur.com/HTZtu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HTZtu.png" alt="enter image description here" /></a></p>
  <p>I thought that using <code>value</code> was intended for reactive forms, while <code>ngValue</code> was for template driven forms. I'd like to know if it's safe to use both in my forms (I always use reactive forms) and if there's any explanation for the different behaviour.</p>
  <p>Thanks!</p>