SPA in Angular2 with multiple subdomains

I need your help for ideas how to realise the following application.

My application will be a local search for consultants in multiple categories. I have a nice readable url and want to setup the pages like so:

  • (search in all categories)
  • (search in category1 only)
  • (search in category2 only)

I know that it isn’t possible to have a client-site SPA with subdomains. My ideas are the following:

  • Multiple instances of my SPA for every category
  • server-side rendering (maybe with Angular Universal?)
  • with PHP or something else

I would be thankful for your advice!

Source: stackoverflow-php