angular-sb-date-select
angular-sb-date-select copied to clipboard
Use one time bindings for arrays
Use one time binding for the year array, since it is not changing after initializing the directive.
https://docs.angularjs.org/guide/expression#one-time-binding
Edit: I made this change initially for month and day arrays as well, but of course they need to be changed when choosing the current/max year.