<ion-header>
  <ion-toolbar>
    <ion-title>Card 1</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <ion-card *ngFor="let card of cards" (click)="viewItemDetails(card)"> <!-- 点击卡片时调用方法 -->
    <ion-card-header>
      <ion-card-title>{{ card.title }}</ion-card-title>
      <ion-card-subtitle>{{ card.editor }}</ion-card-subtitle>
    </ion-card-header>
    <ion-card-content>
      {{ card.detail }}
    </ion-card-content>
  </ion-card>
</ion-content>
