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