angular-cn/packages/core/test/bundling/todo
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
..
BUILD.bazel 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
OUTSTANDING_WORK.md test(ivy): update todo app to http://todomvc.com (#23168) 2018-04-10 13:14:20 -07:00
base.css test(ivy): update todo app to http://todomvc.com (#23168) 2018-04-10 13:14:20 -07:00
bundle.golden_symbols.json fix(ivy): directiveInject should fall back to inject (#29948) 2019-04-16 19:31:46 -07:00
index.html build: serve ivy todo app with real http-server (#23446) 2018-04-25 15:51:18 -07:00
index.ts test(ivy): add bundling test `todo_i18n` (#27420) 2018-12-04 19:59:12 -08:00
todo.css refactor: remove obsolete font-smoothing property (#28174) 2019-01-23 15:44:35 -08:00
todo_e2e_spec.ts test(ivy): add bundling test `todo_i18n` (#27420) 2018-12-04 19:59:12 -08:00