Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Cannot read properties of null (reading '$implicit') with async pipe

I'm trying to find out what is the reason of issue: enter image description here

It raises for this part of code:

<div ngbAccordion #accordion="ngbAccordion" >
    <div ngbAccordionItem="first">
      <span class="body-medium-text-l" ngbAccordionHeader>
        <button ngbAccordionButton class="body-medium-text-m">{{ 'hub_repairs_open_requests' | translate }}</button>
      </span>
      <div ngbAccordionCollapse>
        <div ngbAccordionBody>
          <ng-container *ngFor="let return of dataService.returns | async"> <<== here
            <app-repair-row [return ]="return "></app-repair-row>
          </ng-container>
        </div>
      </div>
    </div>
  </div>

My investigation yielded no conclusions.

like image 353
voltdev Avatar asked Jun 04 '26 11:06

voltdev


1 Answers

What fixed it for me was to use ng-template instead of ng-container.

like image 106
ランス Avatar answered Jun 06 '26 02:06

ランス



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!