page-setting.component_20241228151746.ts 961 B

12345678910111213141516171819202122232425262728293031323334
  1. import { Component, OnInit } from '@angular/core';
  2. import { Router } from '@angular/router';
  3. import { IonHeader, IonButton, IonContent, IonIcon, IonItem, IonLabel, IonList,
  4. IonListHeader, IonCardHeader, IonCardTitle, IonCardContent, IonTitle, IonCard, IonToolbar, IonInput, IonSearchbar } from '@ionic/angular/standalone';
  5. @Component({
  6. selector: 'app-page-setting',
  7. templateUrl: './page-setting.component.html',
  8. styleUrls: ['./page-setting.component.scss'],
  9. standalone: true,
  10. imports: [
  11. IonHeader, IonToolbar, IonTitle, IonContent,
  12. IonList, IonListHeader, IonItem, IonCardTitle,
  13. IonLabel, IonIcon, IonButton, IonCardContent,
  14. IonInput, IonSearchbar, IonCard, IonCardHeader,
  15. ]
  16. })
  17. export class PageSettingComponent implements OnInit {
  18. constructor(private router: Router) { }
  19. ngOnInit() {}
  20. goTab3() {
  21. this.router.navigate(['tabs/tab3']);
  22. }
  23. changeTheme(theme: string) {
  24. document.body.className = theme;
  25. }
  26. }