我有疑问,可以:动态插入指令到模板,例如:
<div class="col-md-3" ng-repeat="r in result">
<span {{r.directive}}></span> //when restrict:"E", r.directive is directive name
</div>
OR
<div class="col-md-3" ng-repeat="r in result">
<span class="{{r.directive}}"></span> //when restrict:"C"
</div>