Problem with ion-google-autocomplete


#1

I’m trying to deploy ion-google-autocomplete in my application (of type tabs) but it does not work. I followed the documentation on this page:

https://github.com/Hobbule/ion-google-autocomplete

It does not give any error in the console or in the network of the navigator, simply does not appear the predictions of google when using the field.

index.html:

<script src="js/ion-google-autocomplete.js"></script>

controllers.js:

.controller(‘CompartirCtrl’, function($scope, $location, $cordovaSQLite) {

  $scope.data = {};

//Optional
$scope.countryCode = ‘ES’;

//Optional
$scope.onAddressSelection = function (location) {

//Do something
var a = location.address_components;

};

compartir.html:

 <input type="text" placeholder="Change address" google-autocomplete-suggestion location="data.location" country-code="{{countryCode}}" on-selection="onAddressSelection(location)" ng-model="data.location.formatted_address" required>

#2

Isnt that for ionic1?