title: Generate unique URL for every entry in Database in Angular 6
body: <p>I have a bunch of data inside my MongoDB and I'm using the MEAN stack for my application. So I have a search, where the user can search the database for an entry, let's take a hospital as an example. The user can specify the options for the hospital, and than the system shows the hospitals which meets the criteria. So if the user now clicks on one hospital, they get the full details of it. Opening times, parking possibilities etc. on an extra page / component. </p>
  
  <p>So I'd now like to create a unique link for this specific hospital, so that the user can save that anywhere they want and access it the next time without using the search.</p>
  
  <p>I'd like something like this -> <code>http://mywebsite.com/hospital/california/alameda-hospital</code></p>
  
  <p>How can I solve this? My component is based on an <code>@Input()</code> which normally holds the hospital information. So now, when the user enters the URL, I need to request my database, get the information needed and fill them into my object <code>hospitalDetails: Object</code> or what would be the correct way?</p>