I have a need to create several md-menus dynamically. Due to the requirement of template reference variables in their syntax this seems not to be an easy task.
eg. If I had an ngFor repeating several cases of a component instance with a template such as the below snippet, I am not able to adjust the # name due to their static nature (unless there is a way?)
<button [mdMenuTriggerFor]="menu">
<i class="{{icon}}">{{menu_header}}</i>
</button>
<md-menu #menu="mdMenu">
<button md-menu-item *ngFor="let m of menu_items">{{m}}</button>
</md-menu>
Is there a technique that can be utilized for such a component/template embedded within an ngFor?