Skip to content

Instantly share code, notes, and snippets.

@orfeasr
orfeasr / form1.module.ts
Created April 2, 2018 17:00
Ionic Dynamic Forms Demo
import { DynamicFormModule } from '../../common/forms/dynamic-form.module';
imports: [IonicModule, DynamicFormModule],
@orfeasr
orfeasr / form1.page.ts
Created April 2, 2018 16:58
Ionic Dynamic Forms Demo
import { ControlBase } from '../../common/forms/control-base';
import { ControlsService } from '../../common/forms/controls.service';
controls: ControlBase<any>[];
constructor(public controlsService: ControlsService) {
@orfeasr
orfeasr / app.components.ts
Created April 2, 2018 16:49
Ionic Dynamic Forms Demo
import { Form1Page } from '../pages/form1/form1.page';
import { Form2Page } from '../pages/form2/form2.page';
{ title: 'Form 1', component: Form1Page, icon: 'football' },
{ title: 'Form 2', component: Form2Page, icon: 'film' },
@orfeasr
orfeasr / form2.page.ts
Created April 2, 2018 16:47
Ionic Dynamic Forms Demo
templateUrl: 'form2.html',
@orfeasr
orfeasr / form1.page.ts
Created April 2, 2018 16:44
Ionic Dynamic Forms Demo
templateUrl: 'form1.html',
@orfeasr
orfeasr / form2.module.ts
Created April 2, 2018 16:41
Ionic Dynamic Forms Demo
import { Form2Page} from './form2.page';
declarations: [Form2Page],
entryComponents: [Form2Page],
@orfeasr
orfeasr / form1.module.ts
Created April 2, 2018 16:37
Ionic Dynamic Forms Demo
import { Form1Page} from './form1.page';
declarations: [Form1Page],
entryComponents: [Form1Page],
@orfeasr
orfeasr / app.module.ts
Created April 2, 2018 16:33
Ionic Dynamic Forms Demo
import { Form1Module } from '../pages/form1/form1.module';
import { Form2Module } from '../pages/form2/form2.module';
Form1Module,
Form2Module
@orfeasr
orfeasr / form2.page.ts
Created April 2, 2018 10:42
Ionic Dynamic Forms Demo
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
@Component({
templateUrl: '',
providers: []
})
export class Form2Page {
form: FormGroup;
@orfeasr
orfeasr / form1.page.ts
Created April 2, 2018 10:39
Ionic Dynamic Forms Demo
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
@Component({
templateUrl: '',
providers: []
})
export class Form1Page {
form: FormGroup;