It's AngularJS directive for multi select, autocomplete, lazyload. selected items are saved ng-model you declared. It's just practice code...