import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
-import { FormControl, ValidatorFn } from '@angular/forms';
+import { UntypedFormControl, ValidatorFn } from '@angular/forms';
import _ from 'lodash';
selection = new EventEmitter();
form: CdFormGroup;
- filter: FormControl;
+ filter: UntypedFormControl;
Object = Object;
filteredOptions: Array<SelectOption> = [];
icons = Icons;
}
private initFilter() {
- this.filter = new FormControl('', { validators: this.customBadgeValidators });
+ this.filter = new UntypedFormControl('', { validators: this.customBadgeValidators });
this.form = new CdFormGroup({ filter: this.filter });
this.filteredOptions = [...(this.options || [])];
}