title: Ionic 2 - Get data back from modal
body: <p>I have a component which is my main interface. Inside this component, clicking a button opens ionic 2 modal which allows to choose items.</p>
  
  <p>My modal page (itemsPage):</p>
  
  <pre><code>..list of items here
  
      &lt;button ion-button [disabled]="!MY_TURN || !selectedItem || !selectedItem.quantity"
         (click)="useItem(selectedItem)"&gt;
          &lt;span&gt;Choose item {{selectedItem?.name}}&lt;/span&gt;
        &lt;/button&gt;
  </code></pre>
  
  <p><code>useItem()</code> should:</p>
  
  <ul>
  <li>Send item data to my main interface component</li>
  <li>Close the modal</li>
  <li>Execute a method in my main interface</li>
  </ul>
  
  <p>How I can perform such actions? Couldn't find any documentation about communicating between modal and component in Ionic 2.</p>