From 5d08a5d4223bd2a2cccc641f27eccae8e82496b0 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 11 Apr 2016 18:23:22 -0400 Subject: [PATCH] docs(tabs): update API docs for tabs references #5819 --- ionic/components/tabs/tabs.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ionic/components/tabs/tabs.ts b/ionic/components/tabs/tabs.ts index 5ea57da809..599f1e0c2d 100644 --- a/ionic/components/tabs/tabs.ts +++ b/ionic/components/tabs/tabs.ts @@ -59,8 +59,8 @@ import {isBlank, isTrueProperty} from '../../util/util'; * * Since the index starts at `0`, this will select the 3rd tab which has * root set to `tab3Root`. You can also grab the `Tabs` instance and call - * the `select()` method. This requires the `` element to have an - * `id`. For example, set the `id` to `myTabs`: + * the `select()` method. This requires the `` element to have + * an `id`. For example, set the `id` to `myTabs`: * * ```html * @@ -71,9 +71,13 @@ import {isBlank, isTrueProperty} from '../../util/util'; * ``` * * Then in your JavaScript you can grab the `Tabs` instance and call `select()`. - * In the following code `app` is of type `IonicApp`: + * In the following code `app` is of type [`IonicApp`](../../app/IonicApp/): * *```js + * constructor(app: IonicApp) { + * this.app = app; + * } + * * onPageDidEnter() { * let tabs = this.app.getComponent('myTabs'); * tabs.select(2); @@ -83,8 +87,10 @@ import {isBlank, isTrueProperty} from '../../util/util'; * * @usage * ```html - * - * + * + * + * + * * * ``` *