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.
在组件上是否可以绑定类似bindonce的样式?请举个例子。
由于 Angular 有 v1.3,它使用以下语法进行 bindonce
<div ng-repeat="item in ctrl.results"> <div>{{ ::item.name }} - {{ ::item.description }}</div> </div> <div ng-if="::vm.user.loggedIn"></div> for class ng-class="::{ loggedIn: vm.user.loggedIn }"