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.
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);