#Filter

7 messages · Page 1 of 1 (latest)

glacial void
#
    this.bankTransfer.valueChanges
      .pipe(
        filter((i) => i.length > 3 || !i.value),
        debounceTime(500)
      )
      .subscribe(() => {
        this.paginator.pageIndex = 0;
        this.find();
      });

I'm trying the filter and for the reason that it is not working can someone help me

#
   <mat-form-field class="size">
      <mat-label>Bank Transfer</mat-label>
      <mat-select [formControl]="bankTransfer">
        <mat-option *ngFor="let bank of bankTransferList" [value]="bank">{{
          bank
        }}</mat-option>
      </mat-select>
    </mat-form-field>
#

html

fallow badge
#

what exactly is not working? do you have an error? what is happening and what do you expect?

glacial void
#

filtering is not reflecting on the screen

fallow badge
#

yes but your code is filtering the valueChanges
your code isn't complere and doesn't make much sense.
you have to filter bankTransferList based on the input's value