Async pipe not found in Angular v18 standalone component

Discussão em 'Angular' iniciado por peterc, Novembro 27, 2024.

  1. peterc

    peterc Guest

    I have an Angular 18.1.0 test project, which I have just created and is all standalone components.

    In the component TypeScript file I have:

    import { NgFor, AsyncPipe } from '@angular/common';

    public A: Observable<ItemModel>;


    The *ngFor shows up fine, but not the async pipe.

    [​IMG]

    [​IMG]

    I also tried importing CommonModule but same issue.

    Does anyone know why I can't see the async pipe?

    Continue reading...

Compartilhe esta Página