Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directive doesn't work when using async pipe #1

Open
OAnouman opened this issue Mar 19, 2019 · 1 comment
Open

Directive doesn't work when using async pipe #1

OAnouman opened this issue Mar 19, 2019 · 1 comment

Comments

@OAnouman
Copy link

Hi.

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

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

predorock commented Jul 3, 2020

Can you do like:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants