angular-cn/packages/core/src
Victor Berchet 13686bb518 fix: element injector vs module injector (#15044)
fixes #12869
fixes #12889
fixes #13885
fixes #13870

Before this change there was a single injector tree.
Now we have 2 injector trees, one for the modules and one for the components.
This fixes lazy loading modules.

See the design docs for details:
https://docs.google.com/document/d/1OEUIwc-s69l1o97K0wBd_-Lth5BBxir1KuCRWklTlI4

BREAKING CHANGES

`ComponentFactory.create()` takes an extra optional `NgModuleRef` parameter.
No change should be required in user code as the correct module will be used
when none is provided

DEPRECATIONS

The following methods were used internally and are no more required:
- `RouterOutlet.locationFactoryResolver`
- `RouterOutlet.locationInjector`
2017-03-14 16:26:17 -07:00
..
animation refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
change_detection refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
debug feat: introduce source maps for templates (#15011) 2017-03-14 09:16:15 -07:00
di refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
i18n refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
linker fix: element injector vs module injector (#15044) 2017-03-14 16:26:17 -07:00
metadata refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
profile refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
reflection refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
render refactor(core): use flags in `Renderer2.setStyle` instead of booleans (#15045) 2017-03-13 09:45:04 -07:00
testability refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
util refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
view fix: element injector vs module injector (#15044) 2017-03-14 16:26:17 -07:00
zone refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
application_init.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
application_module.ts fix: don't instantiate providers with ngOnDestroy eagerly. (#15070) 2017-03-14 14:32:26 -07:00
application_ref.ts fix: element injector vs module injector (#15044) 2017-03-14 16:26:17 -07:00
application_tokens.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
change_detection.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
codegen_private_exports.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
console.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
core.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
core_private_export.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
di.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
error_handler.ts feat: introduce source maps for templates (#15011) 2017-03-14 09:16:15 -07:00
errors.ts feat: introduce source maps for templates (#15011) 2017-03-14 09:16:15 -07:00
event_emitter.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
linker.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
metadata.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
platform_core_providers.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
render.ts refactor(core): use flags in `Renderer2.setStyle` instead of booleans (#15045) 2017-03-13 09:45:04 -07:00
security.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
type.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
util.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
version.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
zone.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00