Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.projectSearch.valueChanges
- .debounceTime(1000)
- .pipe(
- takeUntil(this.destroy$)
- )
- .subscribe(newValue => {
- this.projectSearchValue = newValue;
- this.onSearch();
- });
- this.reloadPages();
- this.loadProjects();
- this.eventBus
- .of(IdProjectRequest)
- .pipe(
- takeUntil(this.destroy$)
- )
- .subscribe(() => {
- this.pages.page = 0;
- this.loadProjects();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement