Skip to content

Version 7.0.0

Compare
Choose a tag to compare
@danialfarid danialfarid released this 19 Aug 00:22
· 378 commits to master since this release

validation rework

Migration notes:

  • Added a bunch of validation directives which could be used in form validation and support for synchronous or asynchronous custom validation: (i.e. ngf-max-size, ngf-max-height, ngf-max-duration, ngf-pattern, ...)
  • Removed ng-model-rejected. All selected files are returned into ng-model but you can detect the invalid ones with file.$error.
  • Removed ngf-reset-on-click and ngf-reset-model-on-click. Now the value will be reset by default but changed the way the input is being reset. Instead of recreating a new element on each click it will reuse the same element. This will make using the web testing frameworks (selenium, etc) to work better with this plugin.
  • ngf-select and ngf-drop now only accept function which would be the same as setting ngf-change. To enable or disable select or drop, use new directives ngf-select-disabled and ngf-drop-disabled