Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ngAutocomplete",
"version": "1.0.0",
"version": "1.0.1",
"main": "src/ngAutocomplete.js",
"dependencies": {
"angular": ">=1.2.0"
}
}
}
6 changes: 3 additions & 3 deletions src/ngAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ angular.module( "ngAutocomplete", [])

scope.$apply(function() {

scope.details = result;
scope.details(result);

controller.$setViewValue(element.val());
});
Expand All @@ -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){
Expand Down Expand Up @@ -163,4 +163,4 @@ angular.module( "ngAutocomplete", [])

}
};
});
});