diff --git a/packages/compiler-cli/src/ngtsc/metadata/src/util.ts b/packages/compiler-cli/src/ngtsc/metadata/src/util.ts index 8575437127..a27a1b2654 100644 --- a/packages/compiler-cli/src/ngtsc/metadata/src/util.ts +++ b/packages/compiler-cli/src/ngtsc/metadata/src/util.ts @@ -223,6 +223,5 @@ function afterUnderscore(str: string): string { /** Returns whether a class declaration has the necessary class fields to make it injectable. */ export function hasInjectableFields(clazz: ClassDeclaration, host: ReflectionHost): boolean { const members = host.getMembersOfClass(clazz); - return members.some( - ({isStatic, name}) => isStatic && (name === 'ɵprov' || name === 'ɵfac' || name === 'ɵinj')); + return members.some(({isStatic, name}) => isStatic && (name === 'ɵprov' || name === 'ɵfac')); }