DeepLinking conflicts


#1

Recently i encountered a issue: When config DeepLinking with App module and IonicPage. The IonicPage’s deeplink config will be override by and App module config.

My code snappiets:


// app module config 

...
IonicModule.forRoot(MyApp, {
      tabsPlacement: '顶部',
      backButtonText: '',
      tabsHideOnSubPages: true
    }, {
   links: [{
   name: 'Home',  component ...
}]
   }),
...
// ionic page config 

@IonicPage({
  name: 'RelayDevicePage'
})
...

As above example, nav can not find ‘RelayDevicePage’

My ionic ENV is:

 Your system information:

    Cordova CLI: 6.5.0
    Ionic Framework Version: 3.3.0
    Ionic CLI Version: 3.0.0-beta.4
    ios-deploy version: 1.7.0
    ios-sim version: 4.1.1
    OS: macOS Sierra
    Node Version: v7.7.3
    Xcode version: Xcode 8.1 Build version 8B62


  "@angular/common": "4.1.2",
    "@angular/compiler": "4.1.2",
    "@angular/compiler-cli": "4.1.2",
    "@angular/core": "4.1.2",
    "@angular/forms": "4.1.2",
    "@angular/http": "4.1.2",
    "@angular/platform-browser": "4.1.2",
    "@angular/platform-browser-dynamic": "4.1.2",
    "@ionic-native/core": "3.10.2",
    "@ionic-native/device": "^3.10.3",
    "@ionic-native/in-app-browser": "3.10.2",
    "@ionic-native/splash-screen": "3.10.2",
    "@ionic-native/status-bar": "3.10.2",
    "@ionic/storage": "2.0.1",
    "ionic-angular": "3.3.0",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.4.0",
    "typescript": "^2.2.2",
    "zone.js": "0.8.11"