Using NgModel With Input Type="File" And A Custom ControlValueAccessor In Angular 7.2.12

added by JavaScript Kicks
4/8/2019 2:10:28 PM

350 Views

Ben Nadel demonstrates how to create a custom ControlValueAccessor that targets File Inputs (type="file") and synchronizes File references with the view-model using NgModel in Angular 7.2.12. This is in contrast to the default value-accessor, which only synchronizes the "value" property of the File Input.


0 comments