我有以下模板: <p [ngClass]="{checked: condition, unchecked: !condition}"> 在執行此操作時,我發現它有點難看,因為我必須重複兩次該條件。
確定! 回上一頁