Specify subdomain on angular routes

-3

Is it possible to place a value obtained from the database before the URL of the page? For example: nombreEmpresa.mipagina.com , being nombreEmpresa obtained from the BD and according to user be changed.

What I need to do is place a variable obtained from the DB before the URL of the page. I understand that the normal thing is after the url:

{
  path: 'login/:nombreEmpresa', 
  component: LoginComponent
}

but I need it to be before (eg nombreEmpresa.urlPagina/login )

Is it possible to do this?

    
asked by NuevoEnAngular 26.12.2018 в 19:35
source

0 answers