title: Angular Live Development Server api requests not found
body: <p>really confused about this and don't know where to start.</p>
  
  <p>Basically i have generated a new angular project with the "dotnet new angular" command.</p>
  
  <p>Im using a fresh machine, node, npm etc etc are all up to date.</p>
  
  <p>My issue is this template just does not work out of the box. When i run the application, all of the frontend will load however, any requests to the api's etc will 404 stating that it cannot find the url.</p>
  
  <p>Message in Chrome console: "Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment..."</p>
  
  <p>My application runs on a different port everytime I execute the "dotnet run" command. Is this supposed to be the case ? Whichever port is generated, this will be the problematic one.</p>
  
  <p>I have to manually change to port 5001 for anything to function correctly (although this comes with annoying security prompts.)</p>
  
  <p>I am using visual studio code for this project. The funny thing is, if i run this project via visual studio (not code) i get a consistent static port number that will function as intended (this also comes with annoying security prompts) so i have to assume its this random port number that vscode is generating ?</p>
  
  <p>Im honestly not to familiar with this so I could be way off admittedly. Any help or advice would be appreaciated. I'd post code snippets if I knew where to start.</p>
  
  <p>PS, I know that I can of course just not run it with VSCode and just stick to Visual Studio. I'd rather understand the issue than ignore it though.</p>
  
  <p>Thanks, in advance. </p>