Wrapping a FormControl in Angular (2+)
Edit: I’ve added a helper for doing just this an angular utilities library I’ve started: s-ng-utils. Using that you can extend WrappedFormControlSuperclass and write: @Component({ selector: ‘my-wrapper’, template: ‘<input [formControl]=”formControl”>’, providers: [provideValueAccessor(MyWrapper)], }) export class MyWrapper extends WrappedFormControlSuperclass<string> { // … } See some more documentation here. One solution is to get the @ViewChild() corresponding … Read more