17.0.0-beta.0 • Published 1 month ago

@matheo/datasource v17.0.0-beta.0

Weekly downloads
32
License
MIT
Repository
github
Last release
1 month 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 month ago

12.10.0-beta.0

2 years ago

12.10.0-beta.1

2 years ago

11.2.8

2 years ago

11.2.7

3 years ago

11.2.6

3 years ago

11.2.5

3 years ago

11.2.0

3 years ago

11.2.1

3 years ago

10.2.0

4 years ago

10.1.0

4 years ago

11.0.0

4 years ago

10.0.1

4 years ago

10.0.0

4 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.7

5 years ago

0.8.6

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago