 
 showErrorsModule.provider 'showErrorsConfig', ->
   _showSuccess = false
+  _trigger = 'blur'
 
   @showSuccess = (showSuccess) ->
     _showSuccess = showSuccess
+    
+  @trigger = (trigger) ->
+    _trigger = trigger
 
   @$get = ->
     showSuccess: _showSuccess
+    trigger: _trigger
 
   return

      blurred = false
      options = scope.$eval attrs.showErrors
      showSuccess = getShowSuccess options

      inputEl   = el[0].querySelector("[name]")
      inputNgEl = angular.element(inputEl)

      unless inputName
        throw "show-errors element has no child input elements with a 'name' attribute"

      inputNgEl.bind trigger, ->
        blurred = true
        toggleClasses formCtrl[inputName].$invalid

