This repository has been archived by the owner on May 21, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(options): mark options as selected on change of options even if o…
…ptions are objects Internal Option representation is an object which is created newly on each change of options collection. Array#indexOf with objects compares by reference and not equality. Because of that the option put into ngModel out site are not marked as selected. By calculating and comparing hash codes of the option the directive is now independent of the kind of options. Closes #7
- Loading branch information