title: Angular 5 - Routing to the same component with different URL's
body: <p>I have the following routes which should route to the same component, I can get it to work by using this following structure. </p>
  
  <pre><code>const carModuleRoutes: Routes = [
      { path: 'car/:category/:carId', component: CarDetailComponent},
      { path: 'car/:carId', component: CarDetailComponent},
  ];
  </code></pre>
  
  <p>But I know this is not a standard way to do so, Is there a proper way of doing the same functionality ?</p>