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 {Page, Events} from 'ionic/ionic';
|
||||
import {Page} from 'ionic/ionic';
|
||||
import {forwardRef} from 'angular2/angular2';
|
||||
import * as helpers from '../../helpers';
|
||||
|
||||
@ -8,7 +8,7 @@ import * as helpers from '../../helpers';
|
||||
directives: [forwardRef(() => helpers.AndroidAttribute)]
|
||||
})
|
||||
class NavigationDetailsPage {
|
||||
constructor(nav: NavController, params: NavParams, events: Events) {
|
||||
constructor(nav: NavController, params: NavParams) {
|
||||
this.nav = nav;
|
||||
this.selection = { title: params.data.name };
|
||||
var navData = {
|
||||
|
@ -14,9 +14,7 @@ import * as helpers from '../../helpers';
|
||||
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
||||
})
|
||||
class TabTextCtrl {
|
||||
constructor(nav: NavController, view: ViewController) {
|
||||
this.nav = nav;
|
||||
this.view = view;
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,8 +27,7 @@ class TabTextCtrl {
|
||||
'</ion-tabs>',
|
||||
})
|
||||
export class BasicPage {
|
||||
constructor(nav: NavController, params: NavParams) {
|
||||
this.nav = nav;
|
||||
constructor() {
|
||||
this.tabOne = TabTextCtrl;
|
||||
this.tabTwo = TabTextCtrl;
|
||||
this.tabThree = TabTextCtrl;
|
||||
|
@ -14,9 +14,7 @@ import * as helpers from '../../helpers';
|
||||
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
||||
})
|
||||
class TabIconTextCtrl {
|
||||
constructor(nav: NavController, view: ViewController) {
|
||||
this.nav = nav;
|
||||
this.view = view;
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,8 +28,7 @@ class TabIconTextCtrl {
|
||||
'</ion-tabs>',
|
||||
})
|
||||
export class IconTextPage {
|
||||
constructor(nav: NavController, params: NavParams) {
|
||||
this.nav = nav;
|
||||
constructor() {
|
||||
this.tabOne = TabIconTextCtrl;
|
||||
this.tabTwo = TabIconTextCtrl;
|
||||
this.tabThree = TabIconTextCtrl;
|
||||
|
@ -14,9 +14,7 @@ import * as helpers from '../../helpers';
|
||||
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
||||
})
|
||||
class TabIconCtrl {
|
||||
constructor(nav: NavController, view: ViewController) {
|
||||
this.nav = nav;
|
||||
this.view = view;
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,8 +28,7 @@ class TabIconCtrl {
|
||||
'</ion-tabs>',
|
||||
})
|
||||
export class IconPage {
|
||||
constructor(nav: NavController, params: NavParams) {
|
||||
this.nav = nav;
|
||||
constructor() {
|
||||
this.tabOne = TabIconCtrl;
|
||||
this.tabTwo = TabIconCtrl;
|
||||
this.tabThree = TabIconCtrl;
|
||||
|
Reference in New Issue
Block a user