AngularJS bind value into data attribute

Viewed 14065

Does anyone know how to bind an interpolated value into a data attribute using AngularJS?

<input type="text" data-custom-id="{{ record.id }}" />

Angular doesn't seem to interpolate that value since its apart of the structure of the element. Any ideas how to fix this?

2 Answers
Related