UNPKG

angular-formio

Version:

The Form.io dynamic form and data management system for Angular.

34 lines (31 loc) 945 B
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormioAppConfig } from '../../src'; import { FormioGridModule } from '../../src/grid'; import { FormioResourceModule, FormioResourceService, FormioResourceConfig, FormioResourceRoutes } from '../../src/resource'; import { AppConfig } from '../config'; import { EventIndexComponent } from './event.index'; export const eventRoutes = FormioResourceRoutes({ index: EventIndexComponent }); @NgModule({ imports: [ CommonModule, FormioGridModule, FormioResourceModule, RouterModule.forChild(eventRoutes) ], declarations: [ EventIndexComponent ], providers: [ FormioResourceService, {provide: FormioAppConfig, useValue: AppConfig}, {provide: FormioResourceConfig, useValue: { name: 'event', form: 'event' }} ] }) export class EventModule {}