angular/packages/upgrade/static/test/integration
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
..
change_detection_spec.ts test: clean up more entryComponents usages (#44561) 2022-01-06 18:36:22 +00:00
content_projection_spec.ts test: clean up more entryComponents usages (#44561) 2022-01-06 18:36:22 +00:00
downgrade_component_spec.ts test: clean up more entryComponents usages (#44561) 2022-01-06 18:36:22 +00:00
downgrade_module_spec.ts refactor(animations): Remove unnecessary IE specific code (#44686) 2022-01-12 20:43:23 +00:00
examples_spec.ts test: clean up more entryComponents usages (#44561) 2022-01-06 18:36:22 +00:00
injection_spec.ts feat(core): update reference and doc to change async to waitAsync. (#37583) 2020-08-03 12:54:13 -07:00
static_test_helpers.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
testability_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
upgrade_component_spec.ts test: clean up more entryComponents usages (#44561) 2022-01-06 18:36:22 +00:00
upgrade_module_spec.ts feat(upgrade): more closely align UpgradeModule#bootstrap() with angular.bootstrap() (#46214) 2022-06-03 10:16:05 -07:00