angular style, class
2013-09-29 14:18
363 查看
ng-class accepts an "expression" that must evaluate to one of the following:
a string of space-delimited class names
an array of class names
a map/object of class names to boolean values
<divng-repeat="item in items"ng-class="{'pending-delete': item.checked}"> ... HTML to display the item ... <inputtype="checkbox"ng-model="item.checked"></div>
[/code]
<divclass="main-body"ng-style="{color: myColor}"> ... <inputtype="text"ng-model="myColor"placeholder="enter a color name">
相关文章推荐
- Calendar A Javascript class for Mootools
- RUNTIME_CLASS(class_name) a CRuntimeClass structure
- Java中可运行Jar包的Classpath
- java classloader
- A class for global logging
- 关于class 类大小的总结
- 小白的NoClassDefFoundError和ClassNotFoundException的解决方法
- oc50--@class1
- class path and classloader
- Class.forName 介绍
- 反射:Class、Method
- java.lang.UnsupportedClassVersionError: Bad version number in .class file
- 不同classloader装载的类不能互相访问?
- class和struct的区别
- 关于ngClass的使用
- ClassNotFoundException: org.springframework.scheduling.quartz.CronTriggerBean
- HTML5新特性-元素的classList属性与应用
- php a simple smtp class
- 从Empty class 看 is_Empty
- BCB Class 编译出错 请教!!!