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,13 +115,15 @@ import {isBlank, isTrueProperty} from '../../util/util';
* by using ViewChild. * by using ViewChild.
* *
*```ts *```ts
* constructor() { * export class TabsPage {
*
* @ViewChild('myTabs) tabRef: Tabs * @ViewChild('myTabs) tabRef: Tabs
* }
* *
* onPageDidEnter() { * onPageDidEnter() {
* this.tabRef.select(2); * this.tabRef.select(2);
* } * }
*
* }
*``` *```
* *
* @demo /docs/v2/demos/tabs/ * @demo /docs/v2/demos/tabs/