One can also use this kind of condition: <div [ngStyle]="myBooleanVar && {'color': 'red'}"></div>. It requires a bit less string concatenation...
確定! 回上一頁