From 3ca7d1a4ef6178909d02b98c48fed7e334fe81dd Mon Sep 17 00:00:00 2001 From: Mike Hartington Date: Fri, 29 Apr 2016 12:56:53 -0400 Subject: [PATCH] docs(tabs): fix ViewChild example --- ionic/components/tabs/tabs.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ionic/components/tabs/tabs.ts b/ionic/components/tabs/tabs.ts index 7018b6f39f..0e1d073dfa 100644 --- a/ionic/components/tabs/tabs.ts +++ b/ionic/components/tabs/tabs.ts @@ -115,12 +115,14 @@ import {isBlank, isTrueProperty} from '../../util/util'; * by using ViewChild. * *```ts - * constructor() { - * @ViewChild('myTabs) tabRef: Tabs - * } + * export class TabsPage { + * + * @ViewChild('myTabs) tabRef: Tabs * * onPageDidEnter() { * this.tabRef.select(2); + * } + * * } *``` *