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?