mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +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.
|
||||
*
|
||||
*```ts
|
||||
* constructor() {
|
||||
* @ViewChild('myTabs) tabRef: Tabs
|
||||
* }
|
||||
* export class TabsPage {
|
||||
*
|
||||
* @ViewChild('myTabs) tabRef: Tabs
|
||||
*
|
||||
* onPageDidEnter() {
|
||||
* this.tabRef.select(2);
|
||||
* }
|
||||
*
|
||||
* }
|
||||
*```
|
||||
*
|
||||
|
Reference in New Issue
Block a user