mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Often some init logic needs to run when a platform or an application is boostrapped.
For example, boostraping a platform requires initializing the dom adapter.
Now, it can be done as follows:
new Provider(PLATFORM_INITIALIZER, {useValue: initDomAdapter, multi: true}),
All platform initializers will be run after the platform injector has been created.
Similarly, all application initializers will be run after the app injector has been
created.
Closes #5355
|
||
|---|---|---|
| .. | ||
| animate | ||
| common | ||
| compiler | ||
| core | ||
| http | ||
| mock | ||
| platform | ||
| router | ||
| symbol_inspector | ||
| testing | ||
| tools | ||
| upgrade | ||
| web_workers | ||
| dev_mode_spec.ts | ||
| public_api_spec.ts | ||