Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

v1.1.0

Compare
Choose a tag to compare
@philippd philippd released this 09 Dec 09:45
· 56 commits to master since this release

1.1.0 - 2014-12-09

  • added new valdrFormGroup directive which sets validity state for a group of form items and is responsible for adding and removing validation messages if valdr-message is loaded, see #11, fixes #44, fixes #48
  • support multiple aliases for constraint names, see #30
  • use the latest regular expression to validate e-mail addresses used in AngularJS, see #33
  • use new $validators pipeline from AngularJS 1.3 instead of $parsers and $formatters for validation, see #35
  • renamed no-valdr-message to valdr-no-message, see #42
  • use ng-show in the default message template instead of ng-if, fixes #49

BREAKING CHANGES

  • valdr now requires AngularJS 1.3.x.
  • Before 1.1.0 a class named form-group was used to group multiple form items and add overall validity state. In 1.1.0
    the new directive valdr-form-group was introduced for this purpose. All valdr validated form fields register with
    the next parent element with the valdr-form-groupdirective (if present). The directive sets the form groups validity
    (ng-valid, ng-invalid) and the class valdr-invalid-dirty-touched-group if one of the form items is
    invalid, has been changed and the user blurred out of the form item. Besides that, if valdr-messages
    is used to add validation messages, the valdr-form-group directive is the element in the DOM which adds and
    removes validation messages for all form items in the group.
  • the attribute no-valdr-message was renamed to valdr-no-message to disable message adding for individual
    form items