title: Angular 4 remove hash(#) from url
body: <p>my app.module.ts </p>
  
  <pre><code>@NgModule({
  .......
    providers: [
  ....
      { provide: LocationStrategy, useClass: HashLocationStrategy},
  ....
  ]
  });
  </code></pre>
  
  <p>when i remove this part, it's works in my localhost but after taking a <strong>ng build</strong>  or <strong>ng build --prod</strong> , when i refresh the page or h5 it doesn't work. It gives 404 error. <strong>I want to remove hash(#) from my url</strong>. Any solution ? </p>