How to use the @ng-dynamic-forms/core.DynamicFormsCoreModule.forRoot function in @ng-dynamic-forms/core

To help you get started, we’ve selected a few @ng-dynamic-forms/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mesemus / django-angular-dynamic-forms / lib / sandbox / app / app.module.ts View on Github external
export function xsrfFactory() {
    return new CookieXSRFStrategy('csrftoken', 'X-CSRFToken');
}


@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        BrowserAnimationsModule,
        FormsModule,
        ReactiveFormsModule,
        HttpModule,
        DynamicFormsCoreModule.forRoot(),
        DynamicFormsMaterialUIModule,
        MdCardModule,
        DjangoFormModule,
        MatProgressSpinnerModule,
        MatButtonModule,
        MatTabsModule,
        MatDialogModule,
        FlexLayoutModule,
        MatSelectModule,
        MatRadioModule,
    ],
    providers: [
        {
            // use django csrf cookie for HTTP PUT/POST/DELETE
            provide: XSRFStrategy,
            useFactory: xsrfFactory
github syndesisio / syndesis-ui / src / app / app.module.ts View on Github external
*   ]
 * })
 * class AppModule {}
 * ```
 *
 */
@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    // TODO - commenting this out for now as it seems to prevent the angular router from clearing it's child elements on route changes
    //BrowserAnimationsModule,
    FormsModule,
    ReactiveFormsModule,
    HttpModule,
    DynamicFormsCoreModule.forRoot(),
    RestangularModule.forRoot([ConfigService], restangularProviderConfigurer),
    TabsModule.forRoot(),
    TooltipModule.forRoot(),
    ModalModule.forRoot(),
    BsDropdownModule.forRoot(),
    CollapseModule.forRoot(),
    AlertModule.forRoot(),
    PopoverModule.forRoot(),
    TypeaheadModule.forRoot(),
    TagInputModule,
    AppRoutingModule,
    StoreModule,
    SyndesisCommonModule.forRoot(),
    DataMapperModule,
    NotificationModule,
    TourNgxBootstrapModule.forRoot()
github udos86 / ng-dynamic-forms / sample / app / app.module.ts View on Github external
@NgModule({

    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        ReactiveFormsModule,
        HttpClientModule,
        AppRoutingModule,
        MatNativeDateModule,
        MatCardModule,
        BsDatepickerModule.forRoot(),
        TimepickerModule.forRoot(),
        NgbDatepickerModule,
        NgbRatingModule,
        NgbTimepickerModule,
        DynamicFormsCoreModule.forRoot(),
        DynamicFormsBasicUIModule,
        DynamicFormsBootstrapUIModule,
        DynamicFormsFoundationUIModule,
        DynamicFormsKendoUIModule,
        DynamicFormsMaterialUIModule,
        DynamicFormsNGBootstrapUIModule,
        DynamicFormsPrimeNGUIModule
    ],
    declarations: [
        BasicSampleFormComponent,
        BootstrapSampleFormComponent,
        FoundationSampleFormComponent,
        KendoSampleFormComponent,
        MaterialSampleFormComponent,
        NGBootstrapSampleFormComponent,
        PrimeNGSampleFormComponent,
github syndesisio / syndesis / ui / src / app / common / ui-patternfly / syndesis-form-control.component.spec.ts View on Github external
async(() => {
      TestBed.configureTestingModule({
        imports: [
          ReactiveFormsModule,
          DynamicFormsCoreModule.forRoot(),
          TextMaskModule,
          TooltipModule.forRoot()
        ],
        declarations: [SyndesisFormComponent]
      })
        .compileComponents()
        .then(() => {
          fixture = TestBed.createComponent(SyndesisFormComponent);

          component = fixture.componentInstance;
          debugElement = fixture.debugElement;
        });
    })
  );
github udos86 / ng-dynamic-forms / packages / ui-basic / src / dynamic-basic-form-control-container.component.spec.ts View on Github external
beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [ReactiveFormsModule, TextMaskModule, DynamicFormsCoreModule.forRoot()],
            declarations: [DynamicBasicFormControlContainerComponent]

        }).compileComponents().then(() => {

            fixture = TestBed.createComponent(DynamicBasicFormControlContainerComponent);

            component = fixture.componentInstance;
            debugElement = fixture.debugElement;
        });
    }));
github DSpace / dspace-angular / src / app / shared / form / builder / ds-dynamic-form-ui / ds-dynamic-form-control.component.spec.ts View on Github external
TestBed.configureTestingModule({

            imports: [
                BrowserModule,
                DynamicFormsCoreModule,
                DynamicFormsNGBootstrapUIModule,
                FormsModule,
                ReactiveFormsModule,
                NgbButtonsModule,
                NgbModule.forRoot(),
                NgbDatepickerModule.forRoot(),
                NgbTimepickerModule.forRoot(),
                NgbTypeaheadModule.forRoot(),
                TextMaskModule,
                DynamicFormsCoreModule.forRoot(),
                InfiniteScrollModule
            ],
            declarations: [
              DsDynamicScrollableDropdownComponent,
              DsDynamicTypeaheadComponent,
              DsDynamicFormComponent,
              DsDynamicFormControlComponent
            ]

        }).compileComponents().then(() => {

            fixture = TestBed.createComponent(DsDynamicFormControlComponent);

            component = fixture.componentInstance;
            debugElement = fixture.debugElement;
        });
github syndesisio / syndesis / app / ui / src / app / integration / edit-page / action-configure / action-configure.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        IntegrationSupportModule,
        RouterTestingModule.withRoutes([]),
        FormsModule,
        ReactiveFormsModule,
        DynamicFormsCoreModule.forRoot(),
        CoreModule.forRoot(),
        ApiModule.forRoot(),
        PlatformModule.forRoot(),
      ],
      declarations: [IntegrationConfigureActionComponent],
      providers: [
        ConfigService,
        FlowPageService,
        CurrentFlowService,
        IntegrationStore,
        IntegrationService,
        EVENTS_SERVICE_MOCK_PROVIDER,
        StepStore,
      ],
      schemas: [CUSTOM_ELEMENTS_SCHEMA],
    }).compileComponents();
github syndesisio / syndesis / app / ui-angular / src / app / app.module.ts View on Github external
import { SyndesisStoreModule } from '@syndesis/ui/store/store.module';
import { platformEndpoints, PlatformModule } from '@syndesis/ui/platform';
import { ERROR_HANDLER_PROVIDERS } from '@syndesis/ui/error-handler';

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    ClickOutsideModule,
    FormsModule,
    ReactiveFormsModule,
    SyndesisCommonModule.forRoot(),
    ApiModule.forRoot(platformEndpoints),
    CoreModule.forRoot(),
    PlatformModule.forRoot(),
    DynamicFormsCoreModule.forRoot(),
    VendorModule,
    TagInputModule,
    AppRoutingModule,
    SyndesisStoreModule,
    DataMapperModule,
    NotificationModule
  ],
  providers: [
    ERROR_HANDLER_PROVIDERS,
    ConfigService,
    {
      provide: APP_INITIALIZER,
      useFactory: appConfigInitializer,
      deps: [ConfigService],
      multi: true
    }
github udos86 / ng-dynamic-forms / sample / app / app.module.ts View on Github external
return new Http(mockBackend, baseRequestOptions);
}

@NgModule({

    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        ReactiveFormsModule,
        AppRoutingModule,
        MatNativeDateModule,
        MatCardModule,
        NgbDatepickerModule.forRoot(),
        NgbTimepickerModule.forRoot(),
        //BsDatepickerModule.forRoot(),
        DynamicFormsCoreModule.forRoot(),
        DynamicFormsBasicUIModule,
        DynamicFormsBootstrapUIModule,
        DynamicFormsFoundationUIModule,
        DynamicFormsKendoUIModule,
        DynamicFormsMaterialUIModule,
        DynamicFormsNGBootstrapUIModule,
        DynamicFormsPrimeNGUIModule
    ],
    declarations: [
        BasicSampleFormComponent,
        BootstrapSampleFormComponent,
        FoundationSampleFormComponent,
        KendoSampleFormComponent,
        MaterialSampleFormComponent,
        NGBootstrapSampleFormComponent,
        PrimeNGSampleFormComponent,
github syndesisio / syndesis / app / ui-angular / src / app / common / ui-patternfly / syndesis-form-control.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        ReactiveFormsModule,
        DynamicFormsCoreModule.forRoot(),
        TextMaskModule,
        TooltipModule.forRoot()
      ],
      declarations: [DurationFormControlComponent, SyndesisFormComponent]
    })
      .compileComponents()
      .then(() => {
        fixture = TestBed.createComponent(SyndesisFormComponent);

        component = fixture.componentInstance;
        debugElement = fixture.debugElement;
      });
  }));