title: Passing data to mat-menu
body: <p>My 'awesome' menu:</p>
  
  <pre><code>&lt;mat-menu #appMenu="matMenu"&gt;
    &lt;ng-template matMenuContent let-myobject="myobject"&gt;
      &lt;button mat-menu-item&gt;Delete {{myobject.name}}&lt;/button&gt;
      &lt;button mat-menu-item&gt;Smth else&lt;/button&gt;
    &lt;/ng-template&gt;
  &lt;/mat-menu&gt;
  
  &lt;button mat-icon-button [matMenuTriggerFor]="appMenu" [matMenuTriggerData]="{myobject: myobject}"&gt;
     &lt;mat-icon&gt;more_vert&lt;/mat-icon&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>First question is if it is ok? Wrote this following documentation but <code>let-myobject="myobject"</code> and <code>{myobject: myobject}</code> looks like overhead (?)</p>
  
  <p>Second question is if I want to calculate some data based on <code>myobject</code> - how I do that? I want it to be calculated just before menu is opened.</p>
  
  <p><code>[matMenuTriggerData]="getData(myobject)"</code> - cant make this or similar work</p>
  
  <p><code>&lt;ng-template matMenuContent let-data="getData(myobject)"&gt;</code> - cant make this or similar work either</p>
  
  <p>I know that I can replace ng-template with component here, but then for e.g. 10 menu items I will need to do 10 outputs in this component. (? or I cant...)</p>