mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
docs(tabs): fix ViewChild example
This commit is contained in:
@ -115,12 +115,14 @@ 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);
|
||||||
|
* }
|
||||||
|
*
|
||||||
* }
|
* }
|
||||||
*```
|
*```
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user