diff --git a/demos/component-docs/tabs/tabs.ts b/demos/component-docs/tabs/tabs.ts
index e9c11b8c7f..cf7bdb4761 100644
--- a/demos/component-docs/tabs/tabs.ts
+++ b/demos/component-docs/tabs/tabs.ts
@@ -3,40 +3,17 @@ import {Page, ViewController} from 'ionic/ionic';
import {forwardRef} from 'angular2/angular2';
import * as helpers from '../helpers';
-var TABS_DEMO_TMPL = '' +
-'' +
-'Tabs' +
-'' +
-'' +
-'';
@Page({
- template: TABS_DEMO_TMPL,
+ template: '' +
+ '' +
+ 'Tabs' +
+ '' +
+ '' +
+ '',
directives: [forwardRef(() => helpers.AndroidAttribute)],
})
-class TabOneCtrl {
- constructor(nav: NavController, view: ViewController) {
- this.nav = nav;
- this.view = view;
- }
-}
-
-@Page({
- template: TABS_DEMO_TMPL,
- directives: [forwardRef(() => helpers.AndroidAttribute)],
-})
-class TabTwoCtrl {
- constructor(nav: NavController, view: ViewController) {
- this.nav = nav;
- this.view = view;
- }
-}
-
-@Page({
- template: TABS_DEMO_TMPL,
- directives: [forwardRef(() => helpers.AndroidAttribute)],
-})
-class TabThreeCtrl {
+class TabTextCtrl {
constructor(nav: NavController, view: ViewController) {
this.nav = nav;
this.view = view;
@@ -46,16 +23,16 @@ class TabThreeCtrl {
@Page({
template:
'' +
- '' +
- '' +
- '' +
+ '' +
+ '' +
+ '' +
'',
})
export class TabsPage {
constructor(nav: NavController, params: NavParams) {
this.nav = nav;
- this.tabOne = TabOneCtrl;
- this.tabTwo = TabTwoCtrl;
- this.tabThree = TabThreeCtrl;
+ this.tabOne = TabTextCtrl;
+ this.tabTwo = TabTextCtrl;
+ this.tabThree = TabTextCtrl;
}
}