Skip to content

Commit 959804b

Browse files
crisbetojelbourn
authored andcommitted
chore(menu): fix incorrect docs example (#9954)
Fixes an incorrect example in the menu docs and the `matMenuContent` being used incorrectly in a unit test. Fixes #9944.
1 parent 0e11849 commit 959804b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/menu/menu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ the `matMenuTriggerData` input. This allows for a single menu instance to be ren
117117
with a different set of data, depending on the trigger that opened it:
118118

119119
```html
120-
<mat-menu #appMenu="matMenu" let-user="user">
121-
<ng-template matMenuContent>
120+
<mat-menu #appMenu="matMenu">
121+
<ng-template matMenuContent let-user="user">
122122
<button mat-menu-item>Settings</button>
123123
<button mat-menu-item>Log off {{name}}</button>
124124
</ng-template>

src/lib/menu/menu.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ class SimpleLazyMenu {
15721572
[matMenuTriggerData]="{label: 'two'}"
15731573
#triggerTwo="matMenuTrigger">Two</button>
15741574
1575-
<mat-menu matMenuContent #menu="matMenu">
1575+
<mat-menu #menu="matMenu">
15761576
<ng-template let-label="label" matMenuContent>
15771577
<button mat-menu-item>{{label}}</button>
15781578
</ng-template>

0 commit comments

Comments
 (0)