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

@Component({
  selector: 'app-follower',
  templateUrl: './follower.page.html',
  styleUrls: ['./follower.page.scss'],
})
export class FollowerPage implements OnInit {
  followerList = [
    { name: 'Aabby',following: false , avatar: 'https://tse2-mm.cn.bing.net/th/id/OIP-C.YOrn8Q0aoOfp7bQc_efOHwAAAA?rs=1&pid=ImgDetMain' },
    { name: 'Black', following: false , avatar: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.1jz69VebvpbUkThZsSWVfQAAAA?pid=ImgDet&w=400&h=400&rs=1' },
    { name: 'Claire', following: false , avatar: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.1jz69VebvpbUkThZsSWVfQAAAA?pid=ImgDet&w=400&h=400&rs=1' },
    // 添加更多粉丝的信息
  ];

  toggleFollow(index: number) {
    this.followerList[index].following = !this.followerList[index].following;
  }
  constructor() { }

  ngOnInit() {
  }

}
