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. 

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.

I'd like something like this -> `http://mywebsite.com/hospital/california/alameda-hospital`

How can I solve this? My component is based on an `@Input()` 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 `hospitalDetails: Object` or what would be the correct way?