function addAttr(el, name, value, scope = 'this.data') {
  (el.attrs || (el.attrs = [])).push({
    name,
    value,
    scope
  });
}
/**
 * Add an attr to element.
 * @param el
 * @param name
 * @param value
 * @param scope
 */
Add an attr to element.
Add an attr to element .
function addAttr(el, name, value, scope = 'this.data') {
  (el.attrs || (el.attrs = [])).push({
    name,
    value,
    scope
  });
}
function addAttr ( el , name , value , scope = 'this.data' ) { ( el . attrs || ( el . attrs = [ ] ) ) . push ( { name , value , scope } ) ; }
Add an attr to element.
Add an attr to element .