mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
docs(demos): remove unused injectables
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import {NavController, NavParams} from 'ionic/ionic';
|
import {NavController, NavParams} from 'ionic/ionic';
|
||||||
import {Page, Events} from 'ionic/ionic';
|
import {Page} from 'ionic/ionic';
|
||||||
import {forwardRef} from 'angular2/angular2';
|
import {forwardRef} from 'angular2/angular2';
|
||||||
import * as helpers from '../../helpers';
|
import * as helpers from '../../helpers';
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ import * as helpers from '../../helpers';
|
|||||||
directives: [forwardRef(() => helpers.AndroidAttribute)]
|
directives: [forwardRef(() => helpers.AndroidAttribute)]
|
||||||
})
|
})
|
||||||
class NavigationDetailsPage {
|
class NavigationDetailsPage {
|
||||||
constructor(nav: NavController, params: NavParams, events: Events) {
|
constructor(nav: NavController, params: NavParams) {
|
||||||
this.nav = nav;
|
this.nav = nav;
|
||||||
this.selection = { title: params.data.name };
|
this.selection = { title: params.data.name };
|
||||||
var navData = {
|
var navData = {
|
||||||
|
@ -14,9 +14,7 @@ import * as helpers from '../../helpers';
|
|||||||
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
||||||
})
|
})
|
||||||
class TabTextCtrl {
|
class TabTextCtrl {
|
||||||
constructor(nav: NavController, view: ViewController) {
|
constructor() {
|
||||||
this.nav = nav;
|
|
||||||
this.view = view;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,8 +27,7 @@ class TabTextCtrl {
|
|||||||
'</ion-tabs>',
|
'</ion-tabs>',
|
||||||
})
|
})
|
||||||
export class BasicPage {
|
export class BasicPage {
|
||||||
constructor(nav: NavController, params: NavParams) {
|
constructor() {
|
||||||
this.nav = nav;
|
|
||||||
this.tabOne = TabTextCtrl;
|
this.tabOne = TabTextCtrl;
|
||||||
this.tabTwo = TabTextCtrl;
|
this.tabTwo = TabTextCtrl;
|
||||||
this.tabThree = TabTextCtrl;
|
this.tabThree = TabTextCtrl;
|
||||||
|
@ -14,9 +14,7 @@ import * as helpers from '../../helpers';
|
|||||||
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
||||||
})
|
})
|
||||||
class TabIconTextCtrl {
|
class TabIconTextCtrl {
|
||||||
constructor(nav: NavController, view: ViewController) {
|
constructor() {
|
||||||
this.nav = nav;
|
|
||||||
this.view = view;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,8 +28,7 @@ class TabIconTextCtrl {
|
|||||||
'</ion-tabs>',
|
'</ion-tabs>',
|
||||||
})
|
})
|
||||||
export class IconTextPage {
|
export class IconTextPage {
|
||||||
constructor(nav: NavController, params: NavParams) {
|
constructor() {
|
||||||
this.nav = nav;
|
|
||||||
this.tabOne = TabIconTextCtrl;
|
this.tabOne = TabIconTextCtrl;
|
||||||
this.tabTwo = TabIconTextCtrl;
|
this.tabTwo = TabIconTextCtrl;
|
||||||
this.tabThree = TabIconTextCtrl;
|
this.tabThree = TabIconTextCtrl;
|
||||||
|
@ -14,9 +14,7 @@ import * as helpers from '../../helpers';
|
|||||||
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
||||||
})
|
})
|
||||||
class TabIconCtrl {
|
class TabIconCtrl {
|
||||||
constructor(nav: NavController, view: ViewController) {
|
constructor() {
|
||||||
this.nav = nav;
|
|
||||||
this.view = view;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,8 +28,7 @@ class TabIconCtrl {
|
|||||||
'</ion-tabs>',
|
'</ion-tabs>',
|
||||||
})
|
})
|
||||||
export class IconPage {
|
export class IconPage {
|
||||||
constructor(nav: NavController, params: NavParams) {
|
constructor() {
|
||||||
this.nav = nav;
|
|
||||||
this.tabOne = TabIconCtrl;
|
this.tabOne = TabIconCtrl;
|
||||||
this.tabTwo = TabIconCtrl;
|
this.tabTwo = TabIconCtrl;
|
||||||
this.tabThree = TabIconCtrl;
|
this.tabThree = TabIconCtrl;
|
||||||
|
Reference in New Issue
Block a user