diff --git a/src/app/app.component.html b/src/app/app.component.html index fdd4ed9..1ee1e73 100755 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -79,4 +79,21 @@
+
+ Selected Bank: {{bankServerSideCtrl.value?.name}} +
+ diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 95cbf9c..cce81c0 100755 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -5,8 +5,7 @@ import {MatSelect} from '@angular/material'; import { ReplaySubject } from 'rxjs'; import { Subject } from 'rxjs'; -import { take } from 'rxjs/operators'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, delay, filter, map, take, debounceTime } from 'rxjs/operators'; interface Bank { id: string; @@ -38,6 +37,12 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy { /** control for the MatSelect filter keyword multi-selection */ public bankMultiFilterCtrl: FormControl = new FormControl(); + /** control for the selected bank for server side filtering */ + public bankServerSideCtrl: FormControl = new FormControl(); + + /** control for filter for server side. */ + public bankServerSideFilteringCtrl: FormControl = new FormControl(); + /** control for the selected bank for option groups */ public bankGroupsCtrl: FormControl = new FormControl(); @@ -119,6 +124,9 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy { /** list of banks filtered by search keyword for multi-selection */ public filteredBanksMulti: ReplaySubject