Suppose I create a reactive form like the following:
public form: FormGroup;
ngOnInit() {
this.form = new FormGroup({ myControl: new FormControl() });
}
I want to be able to dynamically (from code and not template) bind the control to an event. Something like this:
this.form.controls['myControl'].bind('blur', someMethod());
How is it possible with Angular 2?