Can't bind to 'formGroup' since it isn't a known property of 'form'
mport { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule
],
...import { FormsModule } from '@angular/forms';
[...]
@NgModule({
imports: [
[...]
FormsModule
],
[...]
})// To fix this error, you just need to import ReactiveFormsModule from @angular/forms in your module.
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule
],
declarations: [
AppComponent
],
bootstrap: [AppComponent]
})
export class AppModule { }
Also in JavaScript:
- JavaScript how do you create a screen pressable button in 10 lines?
- callout react
- how to write statefull class in react
- jquery add style
- hide show jquery
- loop key in object
- Javascript get current year
- gulp serve Cannot find module 'gulp-sass'
- reduce method javascript
- the simulation using expo won't start - react native
- clear all intervals javascript
- Javascript looping through table
- how accurate is pi javascript
- add items to a react array in hooks
- js difference between two numbers
- javascript sum of array
- react create list of array in react
- if(gender.length === 0) javascript
- find a single element in array of objects javascript
- mongodb delete duplicate documents
- e.target javascript
- jsonObjectRequest = new JsonObjectRequest( Request.Method.GET, url, ecplain
- how to define connection string in appsettings.json
- how to make a vowel counter in javascript