Created
October 14, 2017 18:21
-
-
Save alexzuza/c467496e1893281046646140fdb43552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const formDirectiveProvider: any = { | |
provide: ControlContainer, | |
useExisting: forwardRef(() => NgForm) | |
}; | |
... | |
@Directive({ | |
selector: 'form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]', | |
providers: [formDirectiveProvider], | |
... | |
exportAs: 'ngForm' | |
}) | |
export class NgForm extends ControlContainer implements Form { | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment