<li *ngFor="let room of activeRooms$ | async" [class.active]="room.name === (currentRoomName$ | async)"> 我发现,如果我改用[ngClass],则可以正常工作:
確定! 回上一頁