Skip to content

Version 6.2.0

Compare
Choose a tag to compare
@danialfarid danialfarid released this 14 Aug 23:43
· 389 commits to master since this release

reworked validation

Migration notes:

  • ngf-min-size, ngf-max-size are removed and replaced with ngf-validate which takes a object containing different constraints for the file validation.
  • ngf-default-src and ngf-default-background are removed in favor of using || syntax: instead of ngf-src="file" ngf-default-src="defaultSrc" use ngf-src="file || defaultSrc"
  • ngf-validate could be a function like before or an object specifying the validations. See the readme file for details.