Skip to content

Commit 9e3f093

Browse files
crisbetojelbourn
authored andcommitted
chore(menu): errors referencing old input and directive names (#12732)
Fixes the errors for `mat-menu` which are referencing the camel-cased selectors or the deprecated names for some of the inputs.
1 parent e148414 commit 9e3f093

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/menu/menu-errors.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @docs-private
1212
*/
1313
export function throwMatMenuMissingError() {
14-
throw Error(`mat-menu-trigger: must pass in an mat-menu instance.
14+
throw Error(`matMenuTriggerFor: must pass in an mat-menu instance.
1515
1616
Example:
1717
<mat-menu #menu="matMenu"></mat-menu>
@@ -24,8 +24,8 @@ export function throwMatMenuMissingError() {
2424
* @docs-private
2525
*/
2626
export function throwMatMenuInvalidPositionX() {
27-
throw Error(`x-position value must be either 'before' or after'.
28-
Example: <mat-menu x-position="before" #menu="matMenu"></mat-menu>`);
27+
throw Error(`xPosition value must be either 'before' or after'.
28+
Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>`);
2929
}
3030

3131
/**
@@ -34,6 +34,6 @@ export function throwMatMenuInvalidPositionX() {
3434
* @docs-private
3535
*/
3636
export function throwMatMenuInvalidPositionY() {
37-
throw Error(`y-position value must be either 'above' or below'.
38-
Example: <mat-menu y-position="above" #menu="matMenu"></mat-menu>`);
37+
throw Error(`yPosition value must be either 'above' or below'.
38+
Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>`);
3939
}

0 commit comments

Comments
 (0)