title: How to use ActivatedRoute in Angular 5?
body: <p>I am trying to do exactly the same thing as in this post: <a href="https://stackoverflow.com/questions/48508226/angular-4-get-querystring">Angular 4 get queryString</a></p>
  
  <p>I am using Angular 5.2.5.</p>
  
  <p>ActivatedRoute seems to be the thing to use to retrieve querystring values off the URL when the user first visits the website.  However, I am unable to figure out what I need to import to be able to use ActivatedRoute.  </p>
  
  <p>Could someone specify exactly what needs to be added to the app.module.ts file, and the component.ts file where I am trying to use ActivatedRoute?</p>
  
  <p>This post specifies adding routing to the imports array of the @NgModule: <a href="https://stackoverflow.com/questions/38942817/no-provider-for-activatedroute-angular-2-rc5">No provider for ActivatedRoute - Angular 2 RC5</a>.  However, I don't have an app.routing.ts file.  Do I have to create an app.routing.ts file to use ActivatedRoute?</p>