s202226701043 23 godzin temu
rodzic
commit
438d89bf66

+ 2 - 2
creation-app/src/app/tab1/tab1.page.html

@@ -21,7 +21,7 @@
 </ion-header>
 
 <ion-content [fullscreen]="true">
-  <!-- <ion-slides pager="true" autoplay="3000">
+   <ion-slides pager="true" autoplay="3000">
     <ion-slide *ngFor="let item of recommendedItems; let i = index">
       <img [src]="item.image" />
       <div class="carousel-caption">
@@ -30,7 +30,7 @@
         <button (click)="goToItem(item)">阅读更多</button>
       </div>
     </ion-slide>
-  </ion-slides>  -->
+  </ion-slides> 
   
   <ion-grid>
     <ion-row>

+ 2 - 1
creation-app/src/app/tab1/tab1.page.ts

@@ -1,4 +1,4 @@
-import { Component } from '@angular/core';
+import { Component ,CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import { IonHeader, IonToolbar, IonTitle, IonContent,IonSearchbar,IonButtons,IonButton,IonIcon,IonMenuButton,IonAvatar,
   IonGrid,IonRow,IonCol,IonCard,IonCardHeader,IonCardContent,IonList,IonItem,IonLabel
  } from '@ionic/angular/standalone';
@@ -16,6 +16,7 @@ import { FormControl } from '@angular/forms';
     IonSearchbar,IonButtons,IonButton,IonIcon,IonMenuButton,IonAvatar,IonGrid,IonRow,
     IonCol,IonCard,IonCardHeader,IonCardContent,IonList,IonItem,IonLabel,IonLabel,
   ],
+  schemas:[CUSTOM_ELEMENTS_SCHEMA]
 })
 export class Tab1Page {
 // 属性