Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular4 template reference variable assignment

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?

like image 200
Renaud Avatar asked Jan 29 '26 20:01

Renaud


1 Answers

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

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

like image 188
Wandrille Avatar answered Feb 01 '26 16:02

Wandrille



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!