mbenzenhoefer/ngx-text-overflow-clamp

Directive doesn't work when using async pipe

OAnouman opened this issue · 1 comments

Hi.

When i get data to display with async pipe the directive doesn't work.

<h2 [clamp]="2">
        {{ (fav$ | async)?.title }}
</h2>

Can you do like:

    <span *ngIf="$fav | async as fav">
        <h2 [clamp]="2">
            {{ fav?.title }}
        </h2>
     </span>