code: function listener(ev) {
        if (element[0].hasAttribute('disabled') || rgCtrl.isDisabled()) return;
  
        scope.$apply(function() {
          rgCtrl.setViewValue(attr.value, ev && ev.type);
        });
      }
docs: On click functionality.