Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.studentService.results$
- .pipe(
- // takeUntil(timer$)
- )
- .subscribe(data => {
- if (data && data.length > 0) {
- this.dataSource = new MatTableDataSource(data);
- this.dataSource.paginator = this.paginator;
- this.dataSource.sort = this.sort;
- }
- },
- (error: any) => console.error(error),
- () => console.log('complete')
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement