ngStyle バインディング内で三項演算子を使用すると、if / else条件として機能します。 <div [ngStyle]="{'background-image': 'url(' + value ? image : otherImage + ...
確定! 回上一頁