I keep getting this error while using TypeScript\'s Angular2-forms framework:
There is no directive with \"exportAs\" set to \"ngForm
directive
In case a name is assigned like this:
#editForm="testForm"
... the exportAs has to be defined in the component decorator:
selector: 'test-form', templateUrl: './test-form.component.html', styleUrls: ['./test-form.component.scss'], exportAs: 'testForm'