How do I detect changes that occur to one element of an Angular 2 reactive/dynamic form?
问题 I am trying to detect the change in one specific form element that was built using reactive forms. I used *ngFor and *ngSwitch directives to build a reactive form as demonstrated in https://angular.io/docs/ts/latest/cookbook/dynamic-form.html#. My form currently contains input type text and file . I use the change event to capture the file upload task so I need to detect changes in the file input element but not the text input element. This is where I run into the problem. The form built