import { DataSource } from '@angular/cdk/collections'; import { Observable, of as observableOf } from 'rxjs'; import { Device } from '../../core/device'; export class DeviceListDataSource extends DataSource { constructor(public data: Device[]) { super(); } connect(): Observable { return observableOf(this.data); } disconnect() {} }