title: Add LocationProvider Angular 5
body: <p>How can I configure locationProvider on my routes ? I'm using angular 5.</p>
  
  <p>I don't find documentation about it.</p>
  
  <pre><code>const appRoutes = [
    {path: '', redirectTo: '/example/example', pathMatch: 'full'},
    {
      path: 'example', children: [
      {path: ':example', component: example}
    ]
    }
  ];
  
  @NgModule({
    imports: [
      RouterModule.forRoot(
        appRoutes,
        {
          // enableTracing: true, // &lt;-- debugging purposes only
        })
    ],
    exports: [
      RouterModule
    ],
  })
  export class AppRoutingModule {
  }
  </code></pre>