I have directive with ng-repeat, and would like to pass value to iterate through from outside.
like
<mydirective list="array" repeatstring="item in list | firstfilter | secondfilter |orderBy:value"></mydirective>
<mydirective list="array" repeatstring="item in list | thirdfilter | secondfilter |orderBy:value"></mydirective>
<mydirective list="array" repeatstring="item in list | fourthfilter | secondfilter |orderBy:value"></mydirective>
and the directive to look like
<div ng-repeat="{{repeatstring}}">
<!--repeat insides -->
</div>
I've tried different variants with different binding and ng-init, but the only results it seams to show is eather expression errors or non-rendered ng-repeat. Maybe someone has pulled this trick with angular
jsFiddle: http://jsfiddle.net/Q37gC/2/