From 240531c283930f4e736b65ff402c39af43bc1141 Mon Sep 17 00:00:00 2001 From: Michael Tintiuc Date: Tue, 11 Sep 2018 03:44:28 +0300 Subject: [PATCH] docs(popover) Fix variable undefined errors (#15543) * Update angular.md Fix `event` undefined error * Update javascript.md Fix event undefined error --- core/src/components/popover/usage/angular.md | 2 +- core/src/components/popover/usage/javascript.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/components/popover/usage/angular.md b/core/src/components/popover/usage/angular.md index 225dffbf8e..5e096f9938 100644 --- a/core/src/components/popover/usage/angular.md +++ b/core/src/components/popover/usage/angular.md @@ -14,7 +14,7 @@ export class PopoverExample { async presentPopover(ev: any) { const popover = await this.popoverController.create({ component: PopoverComponent, - event: event, + event: ev, translucent: true }); return await popover.present(); diff --git a/core/src/components/popover/usage/javascript.md b/core/src/components/popover/usage/javascript.md index 3fa2b9c764..5595701087 100644 --- a/core/src/components/popover/usage/javascript.md +++ b/core/src/components/popover/usage/javascript.md @@ -6,7 +6,7 @@ async function presentPopover(ev) { const popover = await popoverController.create({ component: 'popover-example-page', translucent: true - event, + event: ev, }); return await popover.present(); }