UNPKG

angular-formio

Version:

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

65 lines (63 loc) 1.62 kB
/* tslint: disable */ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { BrowserModule } from '@angular/platform-browser'; import { FormioDemoComponent } from './demo.component'; import { FormioFormsModule } from './forms'; import { FormioModule, FormioAppConfig } from '../src'; import { FormioGridModule } from '../src/grid'; import { AuthDemoModule } from './auth/auth.module'; import { HomeComponent } from './home.component'; import { DataComponent } from './data.component'; import { EventModule } from './event/event.module'; import { FormioAuthService, FormioAuthConfig } from '../src/auth'; import { AppConfig } from './config'; @NgModule({ declarations: [ FormioDemoComponent, HomeComponent, DataComponent ], imports: [ BrowserModule, FormioModule, FormioGridModule, RouterModule.forRoot([ { path: '', component: HomeComponent }, { path: 'data', component: DataComponent }, { path: 'forms', loadChildren: () => FormioFormsModule }, { path: 'auth', loadChildren: () => AuthDemoModule }, { path: 'event', loadChildren: () => EventModule } ]) ], providers: [ FormioAuthService, {provide: FormioAppConfig, useValue: AppConfig}, {provide: FormioAuthConfig, useValue: { login: { form: 'user/login' }, register: { form: 'user/register' } }} ], bootstrap: [FormioDemoComponent] }) export class DemoModule {} /* tslint: enable */