angular-formio
Version:
Form.io Angular JSON Form Renderer ========================== This library serves as a Dynamic JSON Powered Form rendering library for [Angular](https://angular.io). This works by providing a JSON schema to a ```<formio>``` Angular component, where that f
34 lines (31 loc) • 924 B
text/typescript
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { FormioAppConfig } from '../../dist';
import { FormioGrid } from '../../dist/grid';
import { FormioResource, FormioResourceService, FormioResourceConfig, FormioResourceRoutes } from '../../dist/resource';
import { AppConfig } from '../config';
import { EventIndexComponent } from './event.index';
export const eventRoutes = FormioResourceRoutes({
index: EventIndexComponent
});
@NgModule({
imports: [
CommonModule,
FormioGrid,
FormioResource,
RouterModule.forChild(eventRoutes)
],
declarations: [
EventIndexComponent
],
providers: [
FormioResourceService,
{provide: FormioAppConfig, useValue: AppConfig},
{provide: FormioResourceConfig, useValue: {
name: 'event',
form: 'event'
}}
]
})
export class EventModule {}