autocomplete functionality to trigger a filter function for each form control respectively.
Is there a way to group the statements instead of individually using multiple observables and separately writing them down as I did below?
this.filteredTypesCodes = this.assetTypeCodeControl.valueChanges
.pipe(
startWith(''),
map(value => value.length >= 2 ? this._filter(value) : [])
);
this.filteredSubTypesCodes = this.assetSubTypeCodeControl.valueChanges
.pipe(
startWith(''),
map(value => value.length >= 2 ? this._filter(value) : [])
);
this.filteredMakesCodes = this.assetMakeCodeControl.valueChanges
.pipe(
startWith(''),
map(value => value.length >= 2 ? this._filter(value) : [])
);