title: How to show dynamic content in @angular/google-maps infoWindow
body: <p>Specifically, how do you show information related to the marker in the respective infoWindow?</p>
  
  <p>By following the example on the repo <a href="https://github.com/angular/components/blob/master/src/google-maps/README.md" rel="noreferrer">here</a>, the same information is opened for every marker. With the old angular google maps you could easily just insert the info window inside the marker with whatever data you wanted. </p>
  
  <p>I saw a few examples of setting the content with {{ contentHere }} in the template, but that only allows for strings. I need to use all the angular template stuff like usual.</p>
  
  <p>Let's say our template looks something like the repo example:</p>
  
  <pre><code>&lt;google-map height="400px"
          width="750px"
          [center]="center"
          [zoom]="zoom"&gt;
    &lt;map-marker #marker
            *ngFor="let place of places"
            [position]="{ lat: place.latitude, lng: place.longitude }"
            [options]="markerOptions"
            (mapClick)="openInfoWindow(marker)"&gt;
  
        &lt;map-info-window&gt;
          &lt;-- this is what i'm concerned with --&gt;
          {{ place.description }}
        &lt;/map-info-window&gt;
    &lt;/map-marker&gt;
  &lt;/google-map&gt;
  </code></pre>
  
  <p>And then we add viewchild like the repo example and open it in the same way:</p>
  
  <pre><code>@ViewChild(MapInfoWindow, {static: false}) infoWindow: MapInfoWindow;
  
  openInfoWindow(marker: MapMarker) {
    this.infoWindow.open(marker);
  }
  </code></pre>
  
  <p>Although this does open the correct marker and the marker will reflect dynamic info, this will show the same content / place.description for every info window, which isn't really surprising since a single ViewChild is being used. I've come up with all kinds of convoluted ways to do this and had a look through the source code but there doesn't seem to be an obvious and/or built in solution for displaying content in the window that is related to what is being used by the marker. It just seems weird to not have that as a basic example.</p>
  
  <p>How would any of you go about doing this?</p>