feat(ivy): support injection even if no injector present (#23345)
- Remove default injection value from `inject` / `directiveInject` since it is not possible to set using annotations. - Module `Injector` is stored on `LView` instead of `LInjector` data structure because it can change only at `LView` level. (More efficient) - Add `ngInjectableDef` to `IterableDiffers` so that existing tests can pass as well as enable `IterableDiffers` to be injectable without `Injector` PR Close #23345
This commit is contained in:
@ -948,7 +948,7 @@ export function createFactory(
|
||||
const flags = extractFlags(dependency);
|
||||
if (flags != InjectFlags.Default) {
|
||||
// Append flag information if other than default.
|
||||
directiveInjectArgs.push(o.literal(undefined), o.literal(flags));
|
||||
directiveInjectArgs.push(o.literal(flags));
|
||||
}
|
||||
args.push(o.importExpr(R3.directiveInject).callFn(directiveInjectArgs));
|
||||
}
|
||||
|
Reference in New Issue
Block a user