35 lines
636 B
TypeScript
35 lines
636 B
TypeScript
|
import { DataModel } from '../../entities/DataModel';
|
||
|
import { GroupBase } from './group-base';
|
||
|
import { Component,Input, OnInit } from '@angular/core';
|
||
|
import { FormGroup, Validators } from '@angular/forms';
|
||
|
import { NgForm } from '@angular/forms';
|
||
|
|
||
|
|
||
|
|
||
|
@Component({
|
||
|
selector: 'df-group',
|
||
|
templateUrl: './dynamic-form-group.component.html',
|
||
|
styleUrls: ['./dynamic-form-group.component.css']
|
||
|
})
|
||
|
export class DynamicFormGroupComponent implements OnInit {
|
||
|
@Input() dataModel: DataModel;
|
||
|
@Input() group: GroupBase<any>;
|
||
|
@Input() form: FormGroup;
|
||
|
|
||
|
constructor() {
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
ngOnInit() {
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|