Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms'; // <-- NgModel lives here
// HttpClient
import { HttpClientModule } from '@angular/common/http';
// ag-grid
import { AgGridModule } from 'ag-grid-angular';
import { AppComponent } from './app.component';
@NgModule({
imports: [
BrowserModule,
FormsModule, // <-- import the FormsModule before binding with [(ngModel)]
HttpClientModule,
AgGridModule.withComponents([])
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {}
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {FormsModule} from '@angular/forms';
// ag-grid
import {AgGridModule} from 'ag-grid-angular';
// application
import {AppComponent} from './app.component';
// rich grid
import {RichGridComponent} from './rich-grid-component/rich-grid.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
AgGridModule.withComponents([])
],
declarations: [
AppComponent,
RichGridComponent
],
bootstrap: [AppComponent]
})
export class AppModule {
}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms'; // <-- NgModel lives here
import { HttpClientModule } from '@angular/common/http';
import { AgGridModule } from 'ag-grid-angular';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule, // <-- import the FormsModule before binding with [(ngModel)]
HttpClientModule,
AgGridModule.withComponents([])
],
bootstrap: [AppComponent]
})
export class AppModule { }
import {FormsModule} from "@angular/forms";
// ag-grid
import {AgGridModule} from "ag-grid-angular/main";
// application
import {AppComponent} from "./app.component";
// rich grid
import {RichGridComponent} from "./rich-grid-example/rich-grid.component";
import {DateComponent} from "./date-component/date.component";
import {HeaderComponent} from "./header-component/header.component";
import {HeaderGroupComponent} from "./header-group-component/header-group.component";
@NgModule({
imports: [
BrowserModule,
FormsModule,
AgGridModule.withComponents(
[
DateComponent,
HeaderComponent,
HeaderGroupComponent
]
)
],
declarations: [
AppComponent,
RichGridComponent,
DateComponent,
HeaderComponent,
HeaderGroupComponent
],
bootstrap: [AppComponent]
})
import {FormsModule} from "@angular/forms";
// ag-grid
import {AgGridModule} from "ag-grid-angular/main";
// application
import {AppComponent} from "./app.component";
// rich grid
import {RichGridComponent} from "./rich-grid-example/rich-grid.component";
import {DateComponent} from "./date-component/date.component";
import {HeaderComponent} from "./header-component/header.component";
import {HeaderGroupComponent} from "./header-group-component/header-group.component";
@NgModule({
imports: [
BrowserModule,
FormsModule,
AgGridModule.withComponents(
[
DateComponent,
HeaderComponent,
HeaderGroupComponent
]
)
],
declarations: [
AppComponent,
RichGridComponent,
DateComponent,
HeaderComponent,
HeaderGroupComponent
],
bootstrap: [AppComponent]
})
UploadComponent,
GalleryComponent,
],
imports: [
BrowserModule,
FormsModule,
AppRoutingModule,
MyDatePickerModule,
HttpModule,
AngularFireAuthModule,
AngularFireModule.initializeApp(environment.firebase),
MatDialogModule,
BrowserAnimationsModule,
TagInputModule,
ReactiveFormsModule,
AgGridModule.withComponents([]),
SharedModule
],
providers: [
...PROVIDED_SERVICES
],
bootstrap: [AppComponent],
entryComponents: [CreateQuestionComponent]
})
export class AppModule { }