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); + * } + * * } *``` *