DG
Size: a a a
DG
DG
Y
Y
N
DG
@Injectable({providedIn: "root"}) export class DiscoveryConfigService {
url: string;
init() {return this.fetchForUrl().pipe(tap(url => this.url = url));}
}
@NgModule({
declarations: [...],
imports: [...],
providers: [
{
'provide': APP_INITIALIZER,
'useFactory': s => () => s.init(),
'deps': [DiscoveryConfigService],
'multi': true
}
],
bootstrap: [...]
})
export class AppModule {
}
DG
Y
Y
IB
IB
AS
IB
AS
IB
IB
AS
IB
AS
AS