import { CommonModule } from '@angular/common';
import { Component, Input, OnInit } from '@angular/core';
import { IonCard } from '@ionic/angular/standalone';

@Component({
  selector: 'app-article-card',
  templateUrl: './article-card.component.html',
  styleUrls: ['./article-card.component.scss'],
  standalone: true,
  imports: [
    IonCard, CommonModule
  ]
})
export class ArticleCardComponent  implements OnInit {

  constructor() { }

  ngOnInit() {}
  /**
   * controller for dropdown visibility
   */
  dropdownVisible = false;

  toggleDropdown() {
    this.dropdownVisible = !this.dropdownVisible;
  }

  @Input() card: any; // 接收父组件传递的卡片数据
}
