Revision 55964
Added by Argiro Kokogiannaki almost 5 years ago
displayClaims.component.ts | ||
---|---|---|
1 |
|
|
2 |
import {distinctUntilChanged, debounceTime} from 'rxjs/operators'; |
|
1 | 3 |
import {Component, ViewChild, Input} from '@angular/core'; |
2 | 4 |
import {Location} from '@angular/common'; |
3 |
import {Observable} from 'rxjs/Observable';
|
|
5 |
import {Observable, Subject} from 'rxjs';
|
|
4 | 6 |
import {ActivatedRoute, Router} from '@angular/router'; |
5 |
import {Subject} from 'rxjs/Subject'; |
|
6 | 7 |
import {ClaimsService} from '../service/claims.service'; |
7 | 8 |
import {ModalLoading} from '../../../utils/modal/loading.component'; |
8 | 9 |
import {AlertModal} from '../../../utils/modal/alert'; |
... | ... | |
58 | 59 |
this.setTypes(params['types']); // check the appropriate checkboxes |
59 | 60 |
this.setSortby(params['sort']); |
60 | 61 |
this.getClaims(); |
61 |
this.searchTermStream |
|
62 |
.debounceTime(300).distinctUntilChanged()
|
|
62 |
this.searchTermStream.pipe(
|
|
63 |
debounceTime(300),distinctUntilChanged(),)
|
|
63 | 64 |
.subscribe((term: string) => { |
64 | 65 |
this.keyword = this.inputkeyword; |
65 | 66 |
//console.log("keyword: "+this.keyword + " VS inputkeyword: "+this.inputkeyword); |
Also available in: Unified diff
[Library|Trunk]
Merge into trunk branch angular7 rev 55729