diff --git a/src/ngAutocomplete.js b/src/ngAutocomplete.js index 3b0b33c..c902047 100644 --- a/src/ngAutocomplete.js +++ b/src/ngAutocomplete.js @@ -110,7 +110,8 @@ angular.module( "ngAutocomplete", []) autocompleteService.getPlacePredictions( { input: result.name, - offset: result.name.length + offset: result.name.length, + types: [scope.options.types] }, function listentoresult(list, status) { if(list == null || list.length == 0) { @@ -163,4 +164,4 @@ angular.module( "ngAutocomplete", []) } }; - }); \ No newline at end of file + });