17.0.0-beta.0 • Published 1 year ago

@matheo/datasource v17.0.0-beta.0

Weekly downloads
32
License
MIT
Repository
github
Last release
1 year ago

Reactive Datasource

This library provides an abstract ReactiveDataSource and MatDataSource classes to build custom datasources on Angular.

You can pass it to a Material Table:

<mat-datasource [dataSource]="source">
  <mat-table [dataSource]="source">
    ...
  </mat-table>
  <footer [attr.hidden]="source.total <= source.pageSize ? '' : null">
    <mat-paginator
      [length]="source.total"
      [pageSize]="source.pageSize"
    ></mat-paginator>
  </footer>
</mat-datasource>

Or consume it via the dataSource pipe:

<ng-container *ngIf="source | dataSource as items">
  <mat-nav-list>
    <mat-list-item *ngFor="let item of items">
      ...
    </mat-list-item>
  </mat-nav-list>
</ng-container>

Demo

An example of how it can work with a Firebase backend it's here:
https://stackblitz.com/edit/matdatasource

And the concepts behind are explained here:
https://medium.com/@matheo/reactive-datasource-for-angular-1d869b0155f6

17.0.0-beta.0

1 year ago

12.10.0-beta.0

4 years ago

12.10.0-beta.1

4 years ago

11.2.8

4 years ago

11.2.7

4 years ago

11.2.6

4 years ago

11.2.5

4 years ago

11.2.0

4 years ago

11.2.1

4 years ago

10.2.0

5 years ago

10.1.0

5 years ago

11.0.0

5 years ago

10.0.1

5 years ago

10.0.0

5 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.7

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago