Skip to content

chore(menu): fix incorrect docs example #9954

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

Merged
merged 1 commit into from
Feb 20, 2018
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/lib/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ the `matMenuTriggerData` input. This allows for a single menu instance to be ren
with a different set of data, depending on the trigger that opened it:

```html
<mat-menu #appMenu="matMenu" let-user="user">
<ng-template matMenuContent>
<mat-menu #appMenu="matMenu">
<ng-template matMenuContent let-user="user">
<button mat-menu-item>Settings</button>
<button mat-menu-item>Log off {{name}}</button>
</ng-template>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/menu/menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ class SimpleLazyMenu {
[matMenuTriggerData]="{label: 'two'}"
#triggerTwo="matMenuTrigger">Two</button>

<mat-menu matMenuContent #menu="matMenu">
<mat-menu #menu="matMenu">
<ng-template let-label="label" matMenuContent>
<button mat-menu-item>{{label}}</button>
</ng-template>
Expand Down