dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AppConfigModule cluster_AppConfigModule_declarations cluster_AppConfigModule_bootstrap cluster_AppConfigModule_imports AppConfigComponent AppConfigComponent AppConfigModule AppConfigModule AppConfigComponent->AppConfigModule ArrayTypeComponent ArrayTypeComponent ArrayTypeComponent->AppConfigModule ObjectTypeComponent ObjectTypeComponent ObjectTypeComponent->AppConfigModule TextAreaComponent TextAreaComponent TextAreaComponent->AppConfigModule AppConfigComponent AppConfigComponent AppConfigModule->AppConfigComponent RedboxPortalCoreModule RedboxPortalCoreModule RedboxPortalCoreModule->AppConfigModule

File

angular/projects/researchdatabox/app-config/src/app/app-config.module.ts

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule } from '@angular/forms';
import { RedboxPortalCoreModule, trimLastSlashFromUrl } from '@researchdatabox/portal-ng-common';
import { APP_BASE_HREF, PlatformLocation } from '@angular/common';
import { RouterModule } from '@angular/router'; 
import { FormlyModule } from '@ngx-formly/core';
import { FormlyBootstrapModule } from '@ngx-formly/bootstrap';
import { AppConfigComponent } from './app-config.component';
import { ArrayTypeComponent } from './fieldTypes/array.type';
import { ObjectTypeComponent } from './fieldTypes/object.type';
import { TextAreaComponent } from './fieldTypes/textarea.type';
import { FormlyFieldTextArea } from '@ngx-formly/bootstrap/textarea';

@NgModule({
  declarations: [
    AppConfigComponent, ArrayTypeComponent, ObjectTypeComponent,TextAreaComponent
  ],
  imports: [
    BrowserModule,
    ReactiveFormsModule,
    RouterModule,
    RedboxPortalCoreModule,
    ReactiveFormsModule,
   FormlyModule.forRoot({
    types: [
      { name: 'array', component: ArrayTypeComponent },
      { name: 'object', component: ObjectTypeComponent },
      { name: 'textarea', component: FormlyFieldTextArea }
    ],
  }),
    FormlyBootstrapModule
  ],
  providers: [
    {
      provide: APP_BASE_HREF,
      useFactory: (s: PlatformLocation) => trimLastSlashFromUrl(s.getBaseHrefFromDOM()),
      deps: [PlatformLocation]
    }
  ],
  bootstrap: [AppConfigComponent]
})
export class AppConfigModule { }

results matching ""

    No results matching ""