title: Geocoder : google is not defined error thrown on angular 2 with webpack
body: <p>I would like to get latitude and longitude for an address. I used angular2-google-maps npm package for this purpose. </p>
  
  <pre><code>import { GoogleMapsAPIWrapper } from 'angular2-google-maps/core';
  declare var google: any;
  export class ContactComponent 
  {
    constructor(private _wrapper: GoogleMapsAPIWrapper) 
    {
  
    }
  
    ngAfterViewInit() {
      this.getLatLon("115 23 Stockholm Sweden") ;
    }
  
    getLatLon(address: string) {
      console.log('Getting Address - ', address);
      let geocoder = new google.maps.Geocoder();
      return Observable.create(observer =&gt; {
          geocoder.geocode( { 'address': address}, function(results, status) {
              if (status == google.maps.GeocoderStatus.OK) {
                  observer.next(results[0].geometry.location);
                  observer.complete();
              } else {
                  console.log('Error - ', results, ' &amp; Status - ', status);
                  observer.next({});
                  observer.complete();
              }
          });
      })
    }
  }
  </code></pre>
  
  <p>I got an error 'google is not defined'. I know i missed some configuration.
  How can i fix this? I use angular 2 with webpack.</p>
  
  <p>App Module:</p>
  
  <pre><code>  import { AgmCoreModule } from 'angular2-google-maps/core';
  
    @NgModule({
    imports: [
    AgmCoreModule.forRoot({
     apiKey: 'XXXXXXXXX'
     })],
    })
  </code></pre>