How does ionic change the class value according to the content?

< ion-item * ngFor= "let item of items" (click) = "godetail (item)" >

  <p class="myi">
    <span [ngClass]="{{{item.piao}}==="1"? "qi":"xian"}">{{item.piao}}            
    </span>
  

< / ion-item >

clipboard.png
on this place, I changed how to write, I tried many kinds, [] {} tried,
just not, please take a look at it, thank you

Mar.22,2021

< span [ngclass] = "[item.piao ='1'? 'qi':' xian']" > {{item.piao}}

I haven't used ng. I guess it's about the same as vue.

Menu