if you are handling some async return you can just use async pipe <div class="test" [ngClass]="(expr | async) === 'yourTest' ? 'hide-element' : null"> <a #b ...
確定! 回上一頁