标签: angularjs performance
传入字符串
<div my-attr="hello"></div>
传入插值
<div my-attr="{{home.val}}"></div>
attrs.$observe('myAttr', function(v) { // do something }