Skip to content

Documentation updated with md-menu-trigger-for dash-case #2420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ your menu element.
*my-comp.html*
```html
<!-- menu opens when trigger button is clicked -->
<button md-icon-button [mdMenuTriggerFor]="menu">
<button md-icon-button [md-menu-trigger-for]="menu">
<md-icon>more_vert</md-icon>
</button>

Expand All @@ -56,7 +56,7 @@ Output:
### Toggling the menu programmatically

You can also use the menu's API to open or close the menu programmatically from your class. Please
note that in this case, an `mdMenuTriggerFor` attribute is still necessary to connect
note that in this case, an `md-menu-trigger-for` attribute is still necessary to connect
the menu to its trigger element in the DOM.

*my-comp.component.ts*
Expand All @@ -72,7 +72,7 @@ class MyComp {

*my-comp.html*
```html
<button md-icon-button [mdMenuTriggerFor]="menu">
<button md-icon-button [md-menu-trigger-for]="menu">
<md-icon>more_vert</md-icon>
</button>

Expand Down