2017-09-14 12:37:36 +02:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
import { HttpModule } from '@angular/http';
|
|
|
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { DynamicFormComponent } from './form/dynamic-form.component';
|
|
|
|
import { DynamicFormFieldComponent } from './form/fields/dynamic-form-field.component';
|
|
|
|
import { ServerService } from './services/server.service';
|
2017-09-21 12:37:19 +02:00
|
|
|
import { dataModelBuilder } from './services/dataModelBuilder.service';
|
2017-09-14 12:37:36 +02:00
|
|
|
import { DynamicFormGroupComponent } from './form/dynamic-form-group/dynamic-form-group.component';
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
DynamicFormComponent,
|
|
|
|
DynamicFormFieldComponent,
|
|
|
|
DynamicFormGroupComponent
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
ReactiveFormsModule,
|
|
|
|
FormsModule,
|
|
|
|
HttpModule,
|
|
|
|
HttpClientModule
|
|
|
|
],
|
2017-09-21 12:37:19 +02:00
|
|
|
providers: [ServerService, dataModelBuilder],
|
2017-09-14 12:37:36 +02:00
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule {
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
}
|