Skip to content

Instantly share code, notes, and snippets.

@leon
Created March 15, 2023 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leon/8677b12e514a6fd23021731f71516bf5 to your computer and use it in GitHub Desktop.
Save leon/8677b12e514a6fd23021731f71516bf5 to your computer and use it in GitHub Desktop.
Angular Wrap Forms component
Template driven forms:
viewProviders: [
{ provide: ControlContainer, useExisting: NgForm }
]
Reactive
viewProviders: [
{ provide: ControlContainer, useExisting: FormGroupDirective }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment