Skip to content

Commit

Permalink
feat(data-source): add a getFilteredAndSorted function
Browse files Browse the repository at this point in the history
  • Loading branch information
tadashi-aikawa authored and lexzhukov committed Mar 29, 2017
1 parent 1ceca0d commit df3f343
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export class LocalDataSource extends DataSource {
return Promise.resolve(this.prepareData(data));
}

getFilteredAndSorted(): Promise<any> {
let data = this.data.slice(0);
this.prepareData(data);
return Promise.resolve(this.filteredAndSorted);
}

getAll(): Promise<any> {
const data = this.data.slice(0);
return Promise.resolve(data);
Expand Down

0 comments on commit df3f343

Please sign in to comment.