angular-cn/packages/core/test/bundling
Kara Erickson d9c39dcab0 fix(ivy): directiveInject should fall back to inject (#29948)
If a component has its definition set by defineComponent (as opposed to
JIT getter), then it will generate a factory that uses directiveInject()
to retrieve its dependencies. This can be problematic in test code because
tests could use the injection utility before bootstrapping the component,
and directiveInject() relies on the view having been created.

This commit tweaks directiveInject() to fall back to inject() if the view
has not been created. This will allow injection to work in tests even if
it is called before the component is bootstrapped.

PR Close #29948
2019-04-16 19:31:46 -07:00
..
animation_world build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
cyclic_import fix(ivy): support providing components and dirs in tests (#29945) 2019-04-16 19:14:17 -07:00
hello_world fix(ivy): support providing components and dirs in tests (#29945) 2019-04-16 19:14:17 -07:00
hello_world_i18n feat(ivy): support i18n without closure (#28689) 2019-04-11 08:28:45 -07:00
hello_world_r2 build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
injection refactor(ivy): use ɵɵ instead of Δ for now (#29850) 2019-04-11 16:27:56 -07:00
todo fix(ivy): directiveInject should fall back to inject (#29948) 2019-04-16 19:31:46 -07:00
todo_i18n refactor(ivy): use ɵɵ instead of Δ for now (#29850) 2019-04-11 16:27:56 -07:00
todo_r2 fix(platform-browser): insert APP_ID in styles, contentAttr and hostAttr (#17745) 2019-04-11 07:59:22 -07:00
util build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00