Google Places Autocomplete + Angular2
I am building a simple Google Places Autocomplete Angular2 directive but the problem is that cannot get any prediction (the response is always empty?!)... As a proof of concept I created the simplest possible code snippet as a reference: <!DOCTYPE html> <html> <head> <script src="https://maps.googleapis.com/maps/api/js?key=[MY_API_KEY]&libraries=places" async defer></script> </head> <body> <button type="button" onclick="go()">go</button> <input id="autocomplete" type="text"></input> <script> var autocomplete = null; function go() { autocomplete = new google.maps.places.Autocomplete( (document