Skip to content

Commit

Permalink
chore(menu): errors referencing old input and directive names (#12732)
Browse files Browse the repository at this point in the history
Fixes the errors for `mat-menu` which are referencing the camel-cased selectors or the deprecated names for some of the inputs.
  • Loading branch information
crisbeto authored and jelbourn committed Aug 21, 2018
1 parent e148414 commit 9e3f093
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/menu/menu-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @docs-private
*/
export function throwMatMenuMissingError() {
throw Error(`mat-menu-trigger: must pass in an mat-menu instance.
throw Error(`matMenuTriggerFor: must pass in an mat-menu instance.
Example:
<mat-menu #menu="matMenu"></mat-menu>
Expand All @@ -24,8 +24,8 @@ export function throwMatMenuMissingError() {
* @docs-private
*/
export function throwMatMenuInvalidPositionX() {
throw Error(`x-position value must be either 'before' or after'.
Example: <mat-menu x-position="before" #menu="matMenu"></mat-menu>`);
throw Error(`xPosition value must be either 'before' or after'.
Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>`);
}

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

0 comments on commit 9e3f093

Please sign in to comment.