Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我认为没有内置指令。你应该写它。
我建议使用经典的 ng-if
<p ng-if="model.condition"><strong>{{model.text}}</strong></p> <p ng-if="!model.condition">{{model.text}}</p>
在您的特定情况下,您还可以ng-class通过 css 使用和设置强样式。
ng-class