title: angular : Define route with extension
body: <p>How can I define an angular 4 route with .html in the pattern?</p>
  
  <p>Example: Say the url is mydomain.com/collections/test.html. When I get the route params in a component, I want to retrieve 'test' as the value, and not 'test.html'</p>
  
  <p>File where routing is defined</p>
  
  <pre><code>const routes: Routes = [
   {path: 'collections/:tag.html', component: CollectionDetailsComponent},
  ];
  </code></pre>
  
  <p>In CollectionDetailsComponent.ts</p>
  
  <pre><code>  ngOnInit()
    {
      this.route.params.forEach((params: Params) =&gt;
      {
        let tag = params['tag'];
  //Here tag contains ".html" at the end
  </code></pre>
  
  <p>Thanks</p>