<ion-header>
  <ion-navbar color='yellow-tab'>
    <ion-title>
      บทความ
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-list *ngIf="news">
    <ion-list-header>Follow us on http://www.sportgalaxy.xyz </ion-list-header>
    <ion-item *ngFor="let p of news.output">
      <ion-thumbnail item-start>
        <img [src]="imageURL + p.feature_url " style='object-fit:cover'/>
      </ion-thumbnail>
      <h2>{{ p.title_th }}</h2>
      <p>{{ p.created_at.$date  | amTimeAgo:true }}</p>
      <button ion-button clear item-end (click)="openModal(p)">View</button>
    </ion-item>
  </ion-list>
</ion-content>
