问题 I am trying to do exactly the same thing as in this post: Angular 4 get queryString I am using Angular 5.2.5. 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. 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? This post specifies