Skip to content

Commit

Permalink
[T] test for deeplinks
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed May 2, 2017
1 parent 8a8a774 commit f011593
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {NgModule, ErrorHandler} from "@angular/core";
import {IonicApp, IonicModule, IonicErrorHandler, Config} from "ionic-angular";
import {IonicApp, IonicModule, IonicErrorHandler, Config, DeepLinkConfig} from "ionic-angular";
import {IonicStorageModule} from "@ionic/storage";
import {MomentModule} from "angular2-moment";
import {MyApp} from "./app.component";
Expand Down Expand Up @@ -117,7 +117,17 @@ import {TutorialPage} from '../pages/tutorial/tutorial';
backButtonText: "后退",
tabsHideOnSubPages: true,
tabsHighlight: true
}),
},
<DeepLinkConfig>{
links: [
{component: TabsPage, name: 'TabsPage', segment: 'tabs'},
{component: HomePage, name: 'HomePage', segment: 'home'},
{component: TutorialPage, name: 'Tutorial', segment: 'tutorial'},
{component: DiscoverPage, name: 'DiscoverPage', segment: 'discover'},
{component: SkillTreePage, name: 'SkillTreePage', segment: 'skilltree'},
{component: UserCenterPage, name: 'UserCenterPage', segment: 'skilltree'}
]
}),
MomentModule,
IonicStorageModule.forRoot(),
Ionic2RatingModule
Expand Down

0 comments on commit f011593

Please sign in to comment.