title: When i do my angular app ng build, routers dont work
body: <p>I opened an angular file in normal basic settings. Then I did the coding on it. I also added routing to it. Now I am trying to upload my file to a website called <a href="http://www.example.com" rel="nofollow noreferrer">www.example.com</a>. When I say ng build, when I open the dist file on both the live server and the original server, it does not accept the routing parts. It gives me this error Cannot GET /marketplace. How do i need to solve this problem.</p>
  <pre><code>const appRoutes: Routes = [
    {path:&quot;&quot;, component:HomeComponentComponent},
    {path:&quot;home&quot;, component: HomeComponentComponent},
    {path: 'marketplace', component:MarketplaceComponent},
    {path:&quot;mycollection&quot;, component:MycollectionComponent}
  ]
  </code></pre>