JustGoscha / allmighty-autocomplete

Simple to use autocomplete directive in a module for AngularJs!
MIT License
392 stars 232 forks source link

Pass id into on-type #114

Open slubowsky opened 8 years ago

slubowsky commented 8 years ago

To better support multiple autocompletes on one page would be great if id was passed into on-type to identify which one it's coming from. Id might simply be passed on to rest service to get appropriate data allowing 1 on-type callback to support many autocompletes.

$scope.onType($scope.searchParam, $scope.attrs.id);