title: Unable to access local file in Angular 2+
body: <p>I'm trying out the http request function in Angular. However, I figured that I'm unable to access any local file in my project folder. When I access "localhost:4200/testfile.json", it throws me an error: 
  <code>ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'starter/testfile.txt'</code></p>
  
  <p>Then I looked into the router module and couldn't figure out what the problem is.
  Here's the code for routermodule:</p>
  
  <pre><code>imports: [
  RouterModule.forRoot([
    { path: '', redirectTo: 'starter', pathMatch: 'full' },
    { path: 'starter', component: StarterComponent },
  ])],
  </code></pre>
  
  <p>I also tried to put the file into assets folder and used localhost:4200/assets/testfile.txt to access it, which works. I'm wondering why assets is the only folder that allows the access while all other path doesn't work. Is it the problem with my routermodule?</p>
  
  <p>Thank you so much.</p>