In Beta I could do this:
export class AppBootstrapper {
constructor(mySettings: AppSettings) {
bootstrap(App,
[
provide(AppSettings, {
useFactory: () => mySettings
})
]
}
}
}
Whereby 'mySettings' is runtime data from the server.
How can I do this in the latest RC?
export class AppBootstrapper {
constructor(mySettings: AppSettings) {
platform.bootstrapModule(AppModule);
}
}
I can get it into Bootstrap, but not into app.module.ts
providers: [
{ provide: AppSettings, useFactory: => new AppSettings(??) }
]
,