You can use the ternary operator to set the color in that way: [color]="chat.status === 'A' ? 'danger' : 'success'". I'm using Ionic's ...
確定! 回上一頁