The strange problem of angular ng-for

there is a code that looks like this

menu.preiods.key in click event I directly use preiod instead of menu.preiods, preiod.key, which is feasible

but in the
paragraph of menu.precursors [I] .key of class.active, if preiod is used instead of menu.preiods, preconditions [I] .key, an error will be reported

.

Why is this?

<ul>
      <ng-container *ngFor="let preiod of menu.preiods; let i = index">
        <li (click)="sport.update_preiod(menu.preiods.key);" [class.active]="selected.preiod == menu.preiods[i].key">{{text[preiod.textId]}}</li>
      </ng-container>
    </ul>
  
Feb.25,2022

preiod is an element in menu.periods. You can use period.key instead of menu.preforms.key

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea4eab-5cb31.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea4eab-5cb31.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?