Angular4 template reference variable assignment

Viewed 492

I've come across this example where we can see:

<md-menu #menu="mdMenu">

I can't find any reference to the ="mdMenu" part of this template in the docs.

Is there some meaning to this or is it just a mistake on the example?

1 Answers

In the doc [mdMenuTriggerFor]="menu" refers to <md-menu #menu="mdMenu">

and in #menu="mdMenu", mdMenu is the directive exported from Material.

Related