Can’t bind to formGroup since it isn’t a known property of form
In this post we will give you information about Can’t bind to formGroup since it isn’t a known property of form. Hear we will give you detail about Can’t bind to formGroup since it isn’t a known property of formAnd how to use it also give you demo for it if it is necessary.
In angular, we’ll get this type of errors if we forgot to add FormsModule inside our app.module.tsfile and trying to use form properties inside components.
We can solve this problem by importing the FormsModule and ReactiveFormsModule from @angular/forms package and added it to the imports array inside your app.module.ts file.
import { BrowserModule } from '@angular/platform-browser';import { FormsModule, ReactiveFormsModule } from '@angular/forms';import { NgModule } from '@angular/core';import { AppComponent } from './app.component';@NgModule({ declarations: [ AppComponent, ChildComponent ], imports: [ BrowserModule, FormsModule, ReactiveFormsModule ], providers: [], bootstrap: [AppComponent]})export class AppModule { }Hope this code and post will helped you for implement Can’t bind to formGroup since it isn’t a known property of form. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs
