Skip to content

Version 6.0.0

Compare
Choose a tag to compare
@danialfarid danialfarid released this 29 Jul 21:03
· 429 commits to master since this release

changed the ngModel behaviour for single file select.

Migration notes:

  • ng-model behaves differently now and could break the code written for previous versions.
    Since this version the model value will be a single file instead of an array if all of the followings are true:
    • ngf-multiple is not set or is resolved to false.
    • multiple attribute is not set on the element
    • ngf-keep is not set or set to false.

Otherwise ng-model will set the model value to an array of files like previous versions.

To facilitate the backward compatibility you can use ngf-model instead of ng-model which will have the same behaviour as previous ng-model except that combining with ng-required will not work.