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 { }
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 { }
import { NgModule } from '@angular/core';
import { AgGridModule } from 'ag-grid-angular';
import { SharedModule } from 'app/shared';
import { AgentListContainerComponent } from './agent-list-container.component';
import { AgentListComponent } from './agent-list.component';
@NgModule({
declarations: [
AgentListComponent,
AgentListContainerComponent
],
imports: [
SharedModule,
AgGridModule.withComponents([])
],
exports: [
AgentListContainerComponent
],
providers: []
})
export class AgentListModule { }