AngularJS directive for distinct values in array