3

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
  • 1
    In the docs you've just linked to, note #heroForm="ngForm" - per the linked form docs, "The variable heroForm is now a reference to the NgForm directive that governs the form as a whole." Commented Oct 5, 2017 at 8:28

1 Answer 1

1

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

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.