I need to pass a data-attribute to an angular controller function. (I'm sure there's a better name, but the context is below):
Dropzone.js has a "preview template". For every file you upload in the dropzone, it renders the HTML you specify here.
Here's a part of this HTML which is of interest:
<div class="dz-size"><span data-dz-size></span></div>
<div class="dz-filename"><span data-dz-name></span></div>
I would like to do something like:
<div class="dz-filename"><span data-dz-name></span></div>
<i class="fa" class="{{getIconFromFilename(dz-name)}}" style="..."></i>
Does anyone know the proper syntax for this?