title: Ionic 2 - menuClose On Image Click
body: <p>In Ionic 2 you can add the</p>
  
  <blockquote>
    <p>menuClose</p>
  </blockquote>
  
  <p>directive on a button so that the side menu will close upon being clicked.</p>
  
  <p>I would like to close the menu when an image is clicked, rather than a button. The image is located within the ion-menu.</p>
  
  <p>Is there a way I can call the menu close function when the image is clicked?</p>
  
  <p>Here's my HTML</p>
  
  <pre><code>&lt;ion-menu [content]="content"&gt;
  
    &lt;ion-header&gt;
      &lt;ion-toolbar&gt;
          &lt;img src="myLogo.svg" class='logo' (click)='closeSideMenu()'&gt;
      &lt;/ion-toolbar&gt;
    &lt;/ion-header&gt;
  
    &lt;ion-content&gt;
      &lt;ion-list&gt;
        &lt;button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)"&gt;
          {{p.title}}
        &lt;/button&gt;
      &lt;/ion-list&gt;
    &lt;/ion-content&gt;
  
  &lt;/ion-menu&gt;
  </code></pre>