Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (84 sloc) 2.69 KB
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { SHARED_ANGULAR_MATERIAL } from './components/angular-material.imports';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FlexLayoutModule } from '@angular/flex-layout';
import { ReactiveFormsModule } from '@angular/forms';
import { FormlyModule } from '@ngx-formly/core';
import { FormlyMaterialModule } from '@ngx-formly/material';
import { FormlyMatDatepickerModule } from '@ngx-formly/material/datepicker';
import { AppRoutingModule } from '@app/app-routing.module';
import { AppComponent } from '@app/app.component';
import { CardWrapperComponent } from '@app/shared/custom-wrappers';
import { RepeatSectionComponent, ImgRadioTypeComponent } from '@app/shared/custom-types';
import { HomeComponent } from '@app/components';
import {
ExerciseOneComponent,
ExerciseTwoComponent,
ExerciseThreeComponent,
ExerciseFourComponent,
ExerciseFiveComponent,
ExerciseSixComponent,
ExerciseSevenComponent
} from '@app/components/exercises-formly';
import {
ExerciseOneRfComponent,
ExerciseTwoRfComponent,
ExerciseThreeRfComponent,
ExerciseFourFtComponent,
ExerciseFiveFtComponent
} from '@app/components/exercises-reactive-forms';
import { RequestService, DictService, LanguageService, ValidationLoader } from '@app/shared/services';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { HttpClientModule } from '@angular/common/http';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
ExerciseOneComponent,
CardWrapperComponent,
ExerciseOneRfComponent,
ExerciseTwoComponent,
RepeatSectionComponent,
ExerciseThreeComponent,
ExerciseTwoRfComponent,
ExerciseThreeRfComponent,
ExerciseFourComponent,
ImgRadioTypeComponent,
ExerciseFiveComponent,
ExerciseSixComponent,
ExerciseFourFtComponent,
ExerciseFiveFtComponent,
ExerciseSevenComponent
],
imports: [
BrowserModule,
AppRoutingModule,
ReactiveFormsModule,
FormlyModule.forRoot({
wrappers: [
{ name: 'card', component: CardWrapperComponent},
],
types: [
{ name: 'repeat-section', component: RepeatSectionComponent },
{ name: 'app-radio', component: ImgRadioTypeComponent },
]
}),
FormlyMaterialModule,
FormlyMatDatepickerModule,
BrowserAnimationsModule,
SHARED_ANGULAR_MATERIAL,
FlexLayoutModule,
HttpClientModule,
TranslateModule.forRoot(),
],
providers: [
RequestService,
DictService,
LanguageService,
TranslateService,
ValidationLoader
],
bootstrap: [AppComponent]
})
export class AppModule { }
You can’t perform that action at this time.