Last active
April 16, 2018 20:19
-
-
Save Stuff90/37f9639e2d9d95d3f262359767021c0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extracted from CDK Tabe basic example https://goo.gl/T4eHRE | |
export class ExampleDataSource extends DataSource<any> { | |
constructor(private _exampleDatabase: ExampleDatabase) { | |
super(); | |
} | |
connect(): Observable<UserData[]> { | |
return this._exampleDatabase.dataChange; | |
} | |
disconnect() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment