angular-cn/modules/@angular/upgrade
Tobias Bosch a46437c57d refactor(core): fix `bootstrapModule` regarding zones and initializers (#10383)
This makes `bootstrapModuleFactory` wait for promises
returned by `APP_INITIALIZER`s, also making `bootstrapModuleFactory` async.
I.e. now `bootstrapModule` and `bootstrapModuleFactory` behave in the
same way.

This ensures that all code from module instantiation, to creating
`ApplicationRef`s as well as calling `APP_INITIALIZERS` is run
in the Angular zone.

This also moves the invocation of the initializers from the `ApplicationRef`
constructor into the `bootstrapModuleFactory` call, allowing initializers
to get a hold of `ApplicationRef` (see #9101).

Fixes #9101
Fixes #10363
Fixes #10205
2016-08-01 02:12:59 -07:00
..
src refactor(core): fix `bootstrapModule` regarding zones and initializers (#10383) 2016-08-01 02:12:59 -07:00
test chore(tests): enable lint, make it green. (#10224) 2016-07-21 17:12:00 -07:00
index.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
package.json fix(upgrade): add peerDependency on platform-browser-dynamic (#9674) 2016-06-28 17:27:28 -07:00
rollup.config.js fix(upgrade): fix bundling issue and fix e2e test 2016-06-21 11:12:42 -07:00
tsconfig-es5.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00
tsconfig-es2015.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00
upgrade.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00