diprokon / ng-table-virtual-scroll

Virtual Scroll for Angular Material Table
https://diprokon.github.io/ng-table-virtual-scroll
MIT License
134 stars 42 forks source link

Angular: strictTemplates cause problems #43

Closed leomayer closed 3 years ago

leomayer commented 3 years ago

Angular10: If I have something like

<cdk-virtual-scroll-viewport tvsItemSize [ngStyle]=...

the Angular compiler complains

     ....   error TS2322: Type 'string' is not assignable to type 'number'.
  4   <cdk-virtual-scroll-viewport tvsItemSize [ngStyle]="{'height': 'calc(
                                   ~~~~~~~~~~~

is there a way to fix this issue? Or better: To assign the values properly?

leomayer commented 3 years ago

Setting the defaults manually

<cdk-virtual-scroll-viewport [tvsItemSize]="48"

solves the problem.