import { Component } from '@angular/core';

@Component({
  selector: 'app-tab2',
  templateUrl: 'tab2.page.html',
  styleUrls: ['tab2.page.scss'],
})
export class Tab2Page {
  selectedTab = 'profile';
  items: any[] = [
    { image: 'assets/image1.jpg', likes: 100 },
    { image: 'assets/image2.jpg', likes: 150 },
    { image: 'assets/image4.jpg', likes: 120 },
    // 添加更多项目
  ];

  constructor() {}
  selectTab(tab: string) {
    this.selectedTab = tab;
  }

}