I'm using AngularJS and am currently loading includes based on a variable like:
<div ng-include="'app/views/' + field.fieldType + '.tpl.html'"></div>
would it be possible to load directives similarly ( key off a variable name in the template )? Something like:
<div my-directive-{{field.fieldType}} />
Thanks!