From 9e3f09353890889e4cc8fe5e80c7bb8ebeb6ad89 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 21 Aug 2018 20:35:03 +0200 Subject: [PATCH] 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. --- src/lib/menu/menu-errors.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/menu/menu-errors.ts b/src/lib/menu/menu-errors.ts index ed6d9895a6d..17fd90e483b 100644 --- a/src/lib/menu/menu-errors.ts +++ b/src/lib/menu/menu-errors.ts @@ -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: @@ -24,8 +24,8 @@ export function throwMatMenuMissingError() { * @docs-private */ export function throwMatMenuInvalidPositionX() { - throw Error(`x-position value must be either 'before' or after'. - Example: `); + throw Error(`xPosition value must be either 'before' or after'. + Example: `); } /** @@ -34,6 +34,6 @@ export function throwMatMenuInvalidPositionX() { * @docs-private */ export function throwMatMenuInvalidPositionY() { - throw Error(`y-position value must be either 'above' or below'. - Example: `); + throw Error(`yPosition value must be either 'above' or below'. + Example: `); }