docs(tabs): fix ViewChild example

This commit is contained in:
Mike Hartington
2016-04-29 12:56:53 -04:00
parent aa7c0bfb1f
commit 3ca7d1a4ef

View File

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