with the following examples you can use 'IF ELSE' <p class="{{condition ? 'checkedClass' : 'uncheckedClass'}}"> <p [ngClass]="condition ?
確定! 回上一頁