I am trying to setup baseHref for my angular app dynamically. Additionally the final baseHref is stored in config.json in different location so I have to make a http request for that, but how Can I do that in module?
Now, my app.module.ts looks like this:
@NgModule({
...
providers: [
{
provide: APP_BASE_HREF,
useValue: '/path/'
},
...
})
How can I simply update useValue field with every page refresh and additionally get this value from http request.