From 50c8c154e3c56f9f256651418c5e60f1deb9d83a Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Tue, 24 Apr 2018 11:38:02 +0200 Subject: [PATCH] docs(calldirectory): fix typo (#2478) I have spotted some typos and added an example for reload. --- src/@ionic-native/plugins/call-directory/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/call-directory/index.ts b/src/@ionic-native/plugins/call-directory/index.ts index 3733e30e1..573b5d1b3 100644 --- a/src/@ionic-native/plugins/call-directory/index.ts +++ b/src/@ionic-native/plugins/call-directory/index.ts @@ -9,7 +9,7 @@ export interface CallDirectoryItem { /** * @name Call Directory * @description - * This plugin can add phone numbers to an Callkit call directory extension. Call `reloadExtension` after using `addentIfication` and `removeIdentification` + * This plugin can add phone numbers to an Callkit call directory extension. Call `reloadExtension` after using `addIdentification` and `removeIdentification` * to process the changes in the call directory extension. * * @usage @@ -19,14 +19,15 @@ export interface CallDirectoryItem { * * constructor(private callDirectory: CallDirectory) { } * - * ... - * * * let items = [{label: "Hello", number: "123"}]; * this.callDirectory.addIdentification(items) * .then((res: any) => console.log(res)) * .catch((error: any) => console.error(error)); * + * this.callDirectory.reloadExtension() + * .then(res: string) => console.log(res)) + * .catch((error: any) => console.error(error)); * ``` */ @Plugin({