How to make [formControl] an optional field?
03:56 18 May 2017

In Angular you can add attributes to inputs and make them optional using attr:


But how do you make a form control optional? I want something like this:


Where the formControl will not be set if someControl is undefined or null?

angular angular2-forms