ng-attr
<div ng-attr="{ 'attribute-name': scopeReference }"></div>
Directive for Angular 1.x for dynamic element attributes
Somewhat similar to ng-class
buf to attributes.
Given:
angular ;
will be compiled to
Installation
npm i ng-attr --save
angular.module('yourModule', ['argshook.ngAttr'])