code: function(scope, element, attr) {
          attr.$observe(ngAttrName, function(value) {
            if (!value) {
              element[0].removeAttribute(attrName);
            }
          });
        }
docs: it needs to run after the attributes are interpolated