diff --git a/packages/core/src/change_detection/differs/iterable_differs.ts b/packages/core/src/change_detection/differs/iterable_differs.ts index 22f8d4c9d2..958ba220b9 100644 --- a/packages/core/src/change_detection/differs/iterable_differs.ts +++ b/packages/core/src/change_detection/differs/iterable_differs.ts @@ -139,6 +139,7 @@ export interface IterableDifferFactory { * @publicApi */ export class IterableDiffers { + /** @nocollapse */ static ngInjectableDef = defineInjectable({ providedIn: 'root', factory: () => new IterableDiffers([new DefaultIterableDifferFactory()]) diff --git a/packages/core/src/di/injector.ts b/packages/core/src/di/injector.ts index ac6127f4c0..22a1b8161a 100644 --- a/packages/core/src/di/injector.ts +++ b/packages/core/src/di/injector.ts @@ -103,6 +103,7 @@ export abstract class Injector { } } + /** @nocollapse */ static ngInjectableDef = defineInjectable({ providedIn: 'any' as any, factory: () => inject(INJECTOR),