Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ngOnInit() {
  2.     this.projectSearch.valueChanges
  3.     .debounceTime(1000)
  4.     .pipe(
  5.       takeUntil(this.destroy$)
  6.     )
  7.     .subscribe(newValue => {
  8.       this.projectSearchValue = newValue;
  9.       this.onSearch();
  10.     });
  11.     this.reloadPages();
  12.     this.loadProjects();
  13.     this.eventBus
  14.       .of(IdProjectRequest)
  15.       .pipe(
  16.         takeUntil(this.destroy$)
  17.       )
  18.       .subscribe(() => {
  19.         this.pages.page = 0;
  20.         this.loadProjects();
  21.       });
  22.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement