diff --git a/bower.json b/bower.json index 8b61562..74c0bb4 100644 --- a/bower.json +++ b/bower.json @@ -1,8 +1,8 @@ { "name": "ngAutocomplete", - "version": "1.0.0", + "version": "1.0.1", "main": "src/ngAutocomplete.js", "dependencies": { "angular": ">=1.2.0" } -} \ No newline at end of file +} diff --git a/src/ngAutocomplete.js b/src/ngAutocomplete.js index 3b0b33c..aa099dc 100644 --- a/src/ngAutocomplete.js +++ b/src/ngAutocomplete.js @@ -90,7 +90,7 @@ angular.module( "ngAutocomplete", []) scope.$apply(function() { - scope.details = result; + scope.details(result); controller.$setViewValue(element.val()); }); @@ -103,7 +103,7 @@ angular.module( "ngAutocomplete", []) } }) - //function to get retrieve the autocompletes first result using the AutocompleteService + //function to get retrieve the autocompletes first result using the AutocompleteService var getPlace = function(result) { var autocompleteService = new google.maps.places.AutocompleteService(); if (result.name.length > 0){ @@ -163,4 +163,4 @@ angular.module( "ngAutocomplete", []) } }; - }); \ No newline at end of file + });