code: function (validatorName) {
        if (angular.isString(validatorName)) {
          var name = substringAfterDot(validatorName);
          name = slugCase(name);
          return 'valdr-' + name;
        } else {
          return validatorName;
        }
      }
docs: Converts the given validator name to a validation token. Uses the last part of the validator name after the
  dot (if present) and converts camel case to slug case (fooBar -> foo-bar).
  @param validatorName the validator name
  @returns {string} the validation token