Angular: NG01050: formControlName must be used with a parent formGroup directive
formControlName is used outside any [formGroup] — the control has no form to belong to.
formControlName must be used with a parent formGroup directiveformGroup expects a FormGroup instance. Please pass one informGroupName must be used with a parent formGroup directive Meaning
Reactive form controls attach to a parent FormGroup. The [formGroup] directive must wrap the inputs in the same template (it does not cross component boundaries), and ReactiveFormsModule must be imported. For a standalone control use [formControl] instead.
Common causes
- Missing
[formGroup]="form"on the surrounding<form>or element - Input placed in a child component whose template has no
[formGroup] ReactiveFormsModulenot imported (so[formGroup]is silently ignored)- Using
formControlNamewhere[formControl]is meant formis undefined when the template renders
⚡ Quick fix
- Wrap the inputs in
<form [formGroup]="form"> - Import
ReactiveFormsModule - Use
[formControl]="ctrl"for a stand-alone control
Detailed fix by platform
Angular
<form [formGroup]="form"><input formControlName="name"></form>andimports: [ReactiveFormsModule]
Code examples
Standalone control vs grouped control
<!-- grouped -->
<form [formGroup]="form"><input formControlName="name"></form>
<!-- stand-alone -->
<input [formControl]="search">How to diagnose
- Parent — Is [formGroup] in the same template?
- Module — ReactiveFormsModule imported?
- Child — Is the input inside a child component?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Cannot find control with name Angular: Error: Cannot find control with name: 'email' (reactive forms)
- mat-form-field must contain a MatFormFieldControl Angular Material: Error: mat-form-field must contain a MatFormFieldControl
- NG01203 Angular: NG01203: No value accessor for form control with name: 'x' (ControlValueAccessor missing)
Most viewed in Angular
- NullInjectorError Angular: NullInjectorError: No provider for X!
- NG0100 Angular: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked
- NullInjectorError: No provider for HttpClient! Angular: NullInjectorError: No provider for HttpClient! — provideHttpClient() missing
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026