From 22ffb4914f862188c1bac1cc7a8f5c8a0998e864 Mon Sep 17 00:00:00 2001 From: Renjith VK Date: Thu, 28 Jun 2018 18:10:37 +0530 Subject: [PATCH] docs(deeplinks): update example (#2570) If it has only one argument, then no need function brackets. It would decrease the readability of the source code snippets. --- src/@ionic-native/plugins/deeplinks/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/deeplinks/index.ts b/src/@ionic-native/plugins/deeplinks/index.ts index 0b9519168..a96bcfee4 100644 --- a/src/@ionic-native/plugins/deeplinks/index.ts +++ b/src/@ionic-native/plugins/deeplinks/index.ts @@ -45,12 +45,12 @@ export interface DeeplinkOptions { * '/about-us': AboutPage, * '/universal-links-test': AboutPage, * '/products/:productId': ProductPage - * }).subscribe((match) => { + * }).subscribe(match => { * // match.$route - the route we matched, which is the matched entry from the arguments to route() * // match.$args - the args passed in the link * // match.$link - the full link data * console.log('Successfully matched route', match); - * }, (nomatch) => { + * }, nomatch => { * // nomatch.$link - the full link data * console.error('Got a deeplink that didn\'t match', nomatch); * }); @@ -63,12 +63,12 @@ export interface DeeplinkOptions { * this.deeplinks.routeWithNavController(this.navController, { * '/about-us': AboutPage, * '/products/:productId': ProductPage - * }).subscribe((match) => { + * }).subscribe(match => { * // match.$route - the route we matched, which is the matched entry from the arguments to route() * // match.$args - the args passed in the link * // match.$link - the full link data * console.log('Successfully matched route', match); - * }, (nomatch) => { + * }, nomatch => { * // nomatch.$link - the full link data * console.error('Got a deeplink that didn\'t match', nomatch); * });