[ADF-850] example on using in-memory form data (#2037)

* stub for custom form service

* demo polishing

- use in-memory formService only for the corresponding demo page 'Form'
- support for mocking rest field values
- demo of the typeahead data mocked

* load data from app config

* fix lint errors

* separate Form and Form List demos
This commit is contained in:
Denys Vuika
2017-07-04 16:58:55 +01:00
committed by Eugenio Romano
parent 2d33aaec17
commit ac9b660e83
10 changed files with 251 additions and 91 deletions

View File

@@ -44,6 +44,8 @@ import { ChartsModule } from 'ng2-charts';
import { CreateFolderDialog } from './dialogs/create-folder.dialog';
import { DebugAppConfigService } from './services/debug-app-config.service';
import { FormListDemoComponent } from './components/form/form-list-demo.component';
import {
HomeComponent,
DataTableDemoComponent,
@@ -115,7 +117,8 @@ if (process.env.ENV === 'production') {
FormNodeViewer,
CreateFolderDialog,
SettingsComponent,
FormDemoComponent
FormDemoComponent,
FormListDemoComponent
],
providers: [
{ provide: AppConfigService, useClass: DebugAppConfigService }