Skip to content
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