How to use ngx-schema-form - 2 common examples

To help you get started, we’ve selected a few ngx-schema-form 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 guillotinaweb / ngx-schema-form / src / app / app.module.ts View on Github external
TemplateSchemaExampleComponent
} from './template-schema-example/template-schema-example.component';

@NgModule({
  declarations: [
    AppComponent,
    JsonSchemaExampleComponent,
    TemplateSchemaExampleComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    RouterModule.forRoot(routes),
    SchemaFormModule.forRoot(),
    TemplateSchemaModule
  ],
  providers: [
    {provide: WidgetRegistry, useClass: DefaultWidgetRegistry},
    {
      provide: SchemaValidatorFactory,
      useClass: ZSchemaValidatorFactory
    }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
github plone / plone.restapi-angular / src / app / app.component.spec.ts View on Github external
beforeEach(() => {
    TestBed.configureTestingModule({
      declarations: [
        AppComponent,
        CustomViewView,
        CustomSfEditView,
        FakeCustomBreadcrumbs,
        CustomGlobalNavigation,
        Search,
      ],
      imports: [
        HttpClientTestingModule,
        TraversalModule,
        RESTAPIModule,
        SchemaFormModule.forRoot(),
        FormsModule,
      ],
      providers: [
        { provide: APP_BASE_HREF, useValue: '/' },
        {
          provide: 'CONFIGURATION', useValue: {
            BACKEND_URL: 'http://fake/Plone',
          }
        },
      ],
    });

    TestBed.overrideModule(BrowserDynamicTestingModule, {
      set: {
        entryComponents: [CustomViewView],
      },

ngx-schema-form

MIT
Latest version published 6 months ago

Package Health Score

75 / 100
Full package analysis

Popular ngx-schema-form functions