Version 7.0.0
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 intong-model
but you can detect the invalid ones withfile.$error
. - Removed
ngf-reset-on-click
andngf-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
andngf-drop
now only accept function which would be the same as setting ngf-change. To enable or disable select or drop, use new directivesngf-select-disabled
andngf-drop-disabled