<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-back-button defaultHref="/tabs/tab4"></ion-back-button>
    </ion-buttons>
    <ion-title style="font-size:30px">反馈</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <ion-list lines="none">
  <ion-item *ngFor="let message of chatMessages" [class.sender]="message.sender === 'customer'">
    <ion-avatar slot="start">
      <ion-img [src]="'D:\workspace\APPmy\asset\img' + message.avatar"></ion-img>
    </ion-avatar>
    <ion-label>{{ message.text }}</ion-label>
  </ion-item>
</ion-list>


  <ion-footer>
    <ion-input placeholder="输入消息..." [(ngModel)]="newMessage"></ion-input>
    <ion-button expand="block" (click)="sendMessage()">发送</ion-button>
  </ion-footer>
</ion-content>
