bootstrap method
void
bootstrap()
An optional callback for synchronous initialization.
If lazy loading is disabled this will be called right when
the app starts. Use bootstrapAsync()
if you want asynchronous.
Execution Order:
When the app runs, this is how Momentum execute all callbacks:
- Momentum root -
initializer()
(awaited) - Initialize all Services
- All Controllers -
T init()
- All non-lazy Controllers -
bootstrap()
- All non-lazy Controllers -
bootstrapAsync()
(awaited) - All Controllers -
onReady()
Implementation
void bootstrap() {}