title: How to use material-dropdown-select in angular dart
body: <p>I am looking for a sample how to use the <code>material-dropdown-select</code> component.</p>
  
  <p>What I have is a variable holding the currently selected item and a list with all possible items. What I managed to do is to display the dropdown component and fill the available items.</p>
  
  <pre><code>  &lt;material-dropdown-select&gt;
      &lt;material-select-item *ngFor="let item of allItems"&gt;
        {{item.name}}
      &lt;/material-select-item&gt;
    &lt;/material-dropdown-select&gt;
  </code></pre>
  
  <p>What I did not manage is to automatically mark the currently selected item and to add an event handler to update the selection. In that case it would be necessary to not update the variable itself but to run a method which in my case triggers a redux state transition.</p>