title: Angular2 Routing: import submodule with routing + making it prefixed
body: <p>I have a main module and some submodules. And I want to specify some not trivial routing between them. </p>
  
  <p>I'd prefer defining the routes of a submodule within the submodule. E.g.: </p>
  
  <pre><code>@NgModule({
      imports: [
          /*...*/
          RouterModule.forChild([
              { path: 'country', redirectTo: 'country/list' },
              { path: 'country/list', component: CountryListComponent },
              { path: 'country/create', component: CountryCreateComponent },
              /*...*/
          ])
      ],
      declarations: [/*...*/],
      exports: [
          RouterModule,
      ],
  })
  export class CountryModule {}
  </code></pre>
  
  <p>I want to import this module with its own internal routing, but I want to make its whole routing prefixed.</p>
  
  <pre><code>const appRoutes = [
      { path: '', component: HomeComponent },
      /*... (basic routes)*/
  ];
  
  @NgModule({
      imports: [
          /*...*/
          RouterModule.forRoot(appRoutes),
          CountryModule, // &lt;- how to make its routing prefixed??
      ],
      declarations: [
          /*...*/
          AppComponent,
      ],
      bootstrap: [ AppComponent ]
  })
  export class AppModule {}
  </code></pre>
  
  <p>This settings creates the following routes: <code>/country</code>, <code>/country/list</code>, etc., but I want to make them prefixed like this:</p>
  
  <ul>
  <li><code>/settings/country</code></li>
  <li><code>/settings/country/list</code></li>
  <li><code>/settings/country/create</code></li>
  </ul>
  
  <p>There are other modules that I want to access via another routing, e.g. a <code>CityModule</code> under <code>/otherstuff/city/create</code> and /otherstuff/city/list`. </p>
  
  <p>My questions:</p>
  
  <ol>
  <li>Is it possible to import a module with its own routing and make its routes prefixed? </li>
  <li>Furthermore: Is there a way to make links between 2 submodules agnostically of their final (prefixed) routes? </li>
  </ol>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The accepted answer is the best way to do it: create the routes in the module, register them externally. Thus you can modify the routes, e.g. prefix them (this is what I wanted), you can define guards, override or filter them, etc. </p>