+++
date = "2017-11-15T15:05:00-07:00"
draft = false
title = "Basic Info Windows"

+++

## Adding an Info Window to a Map Marker

By making a `<agm2-info-window>` a child element of an `<agm2-marker>`, AGM will automatically make sure that clicking the marker will open the info window.
For example:

```html
<agm2-map [latitude]="59.326242" [longitude]="17.8419719" >
  <agm2-marker [latitude]="59.326242" [longitude]="17.8419719">
    <agm2-info-window>Börk</agm2-info-window>
  </agm2-marker>
</agm2-map>
```