2017-11-23 11:40:02 +01:00
|
|
|
import { FormGroup } from '@angular/forms';
|
|
|
|
import { Section } from '../../entities/model/section';
|
2017-12-06 11:35:50 +01:00
|
|
|
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
2017-11-23 11:40:02 +01:00
|
|
|
@Component({
|
2017-12-06 11:35:50 +01:00
|
|
|
selector: 'df-section',
|
|
|
|
templateUrl: './dynamic-form-section.html',
|
|
|
|
styleUrls: [
|
|
|
|
'./dynamic-form-section.css'
|
|
|
|
],
|
|
|
|
encapsulation: ViewEncapsulation.None,
|
|
|
|
})
|
|
|
|
export class DynamicFormSectionComponent implements OnInit {
|
2017-11-23 11:40:02 +01:00
|
|
|
|
2017-12-06 11:35:50 +01:00
|
|
|
@Input() section: Section
|
|
|
|
@Input() form: FormGroup;
|
|
|
|
@Input() pathName: string;
|
|
|
|
@Input() path: string;
|
|
|
|
constructor() { }
|
2017-11-23 11:40:02 +01:00
|
|
|
|
2017-12-06 11:35:50 +01:00
|
|
|
ngOnInit() {
|
2017-11-23 11:40:02 +01:00
|
|
|
|
2017-12-06 11:35:50 +01:00
|
|
|
}
|
|
|
|
}
|