d9c39dcab0
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 |
||
---|---|---|
.. | ||
animation_world | ||
cyclic_import | ||
hello_world | ||
hello_world_i18n | ||
hello_world_r2 | ||
injection | ||
todo | ||
todo_i18n | ||
todo_r2 | ||
util |