mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(router-deprecated): remove router-deprecated references
This commit is contained in:
@ -32,10 +32,6 @@ System.config({
|
|||||||
main: 'index.js',
|
main: 'index.js',
|
||||||
defaultExtension: 'js'
|
defaultExtension: 'js'
|
||||||
},
|
},
|
||||||
'@angular/router-deprecated': {
|
|
||||||
main: 'index.js',
|
|
||||||
defaultExtension: 'js'
|
|
||||||
},
|
|
||||||
'@angular/http': {
|
'@angular/http': {
|
||||||
main: 'index.js',
|
main: 'index.js',
|
||||||
defaultExtension: 'js'
|
defaultExtension: 'js'
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import {Component, ViewChild} from '@angular/core';
|
import {Component, ViewChild} from '@angular/core';
|
||||||
import {Routes} from '@angular/router';
|
|
||||||
import {Location} from '@angular/common';
|
import {Location} from '@angular/common';
|
||||||
|
|
||||||
import {ionicBootstrap, NavController, NavParams, Modal, ViewController, Tabs} from '../../../../../src';
|
import {ionicBootstrap, NavController, NavParams, Modal, ViewController, Tabs, Tab} from '../../../../../src';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -73,7 +72,7 @@ class TabsPage {
|
|||||||
constructor(private nav: NavController, private params: NavParams) {}
|
constructor(private nav: NavController, private params: NavParams) {}
|
||||||
|
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
this.tabs.ionChange.subscribe(tab => {
|
this.tabs.ionChange.subscribe((tab: Tab) => {
|
||||||
console.log('tabs.ionChange.subscribe', tab.index);
|
console.log('tabs.ionChange.subscribe', tab.index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -414,10 +413,6 @@ class Tab3Page1 {
|
|||||||
@Component({
|
@Component({
|
||||||
template: '<ion-nav [root]="root"></ion-nav>'
|
template: '<ion-nav [root]="root"></ion-nav>'
|
||||||
})
|
})
|
||||||
// @Routes([
|
|
||||||
// { path: '/', component: SignIn },
|
|
||||||
// { path: '/tabs', component: TabsPage },
|
|
||||||
// ])
|
|
||||||
class E2EApp {
|
class E2EApp {
|
||||||
root = SignIn;
|
root = SignIn;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import {bootstrap} from '@angular/platform-browser-dynamic';
|
import {bootstrap} from '@angular/platform-browser-dynamic';
|
||||||
import {enableProdMode, provide, PLATFORM_DIRECTIVES, ComponentRef, NgZone} from '@angular/core';
|
import {enableProdMode, provide, PLATFORM_DIRECTIVES, ComponentRef, NgZone} from '@angular/core';
|
||||||
import {ROUTER_PROVIDERS} from '@angular/router';
|
|
||||||
import {LocationStrategy, HashLocationStrategy} from '@angular/common';
|
|
||||||
import {HTTP_PROVIDERS} from '@angular/http';
|
import {HTTP_PROVIDERS} from '@angular/http';
|
||||||
|
|
||||||
import {App} from '../components/app/app';
|
import {App} from '../components/app/app';
|
||||||
@ -131,8 +129,6 @@ export function ionicProviders(customProviders?: Array<any>, config?: any): any[
|
|||||||
Translate,
|
Translate,
|
||||||
TapClick,
|
TapClick,
|
||||||
provide(PLATFORM_DIRECTIVES, {useValue: [directives], multi: true}),
|
provide(PLATFORM_DIRECTIVES, {useValue: [directives], multi: true}),
|
||||||
ROUTER_PROVIDERS,
|
|
||||||
provide(LocationStrategy, {useClass: HashLocationStrategy}),
|
|
||||||
HTTP_PROVIDERS,
|
HTTP_PROVIDERS,
|
||||||
customProviders
|
customProviders
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user