import { Component , OnInit } from '@angular/core' ; import { FileConfig } from '../file-config' ; import { FormControl } from '@angular/forms' ; @ Component ( { templateUrl : './csv-config.component.html' , styleUrls : [ './csv-config.component.scss' ] } ) export class CsvConfigComponent extends FileConfig implements OnInit { public constructor ( ) { super ( ) ; } public ngOnInit ( ) { for ( const defaultConfigEntry in this . defaultParserConfig ) { this . configForm . addControl ( defaultConfigEntry , new FormControl ( '' ) ) ; } this . configForm . patchValue ( this . defaultParserConfig ) ; } }