I have a third party module in my app.module.ts that needs to know whether a user logs in with or without a "www" in their url to correctly redirect them after authentication. So, setup looks like:
app.module.ts
...
@NgModule({
declarations: [
AppComponent
],
imports : [
...
ThirdPartyAuthModule.initAuth(environment.authConfig),
...
],
bootstrap : [
AppComponent
]
})
export class AppModule
{
}
I want to get somehow get the url into that authConfig variable. Is this possible with Angular?
Please login or Register to submit your answer