angular/packages/upgrade/static/src
George Kalpakas e9cb0454dc feat(upgrade): more closely align UpgradeModule#bootstrap() with angular.bootstrap() (#46214)
Previously, [UpgradeModule#bootstrap()][1], while being a replacement
for and accepting the same arguments as [angular.bootstrap()][2], did
not return the same value as `angular.bootstrap()` (i.e. the AngularJS
injector in most cases). This made it less straight forward to migrate
some usecases that relied on the return value of `.bootstrap()`. The
work-around was to access the injector via [UpgradeModule#$injector][3]
(after the app had been bootstrapped with `UpgradeModule#bootstrap()`).

This commit addresses this by ensuring `UpgradeModule#bootstrap()`
returns the same value as `angular.bootstrap()`, making it easier to
replace the latter with the former.

[1]: https://angular.io/api/upgrade/static/UpgradeModule#bootstrap
[2]: https://docs.angularjs.org/api/ng/function/angular.bootstrap
[3]: https://angular.io/api/upgrade/static/UpgradeModule#%24injector

Fixes #46211

PR Close #46214
2022-06-03 10:16:05 -07:00
..
angular1_providers.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
downgrade_module.ts docs: deprecate factory-based signature of the downgradeModule function (#44090) 2021-11-17 10:33:10 -08:00
upgrade_component.ts docs(upgrade): add @extensible to the UpgradeComponent class (#42807) 2021-08-17 09:23:09 -07:00
upgrade_module.ts feat(upgrade): more closely align UpgradeModule#bootstrap() with angular.bootstrap() (#46214) 2022-06-03 10:16:05 -07:00
util.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00