From 5e769d9a25a73eb56b103b385b60646a595475f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Mon, 5 Nov 2018 15:10:04 -0800 Subject: [PATCH] fix(ivy): add `nocollapse` to ngInjectableDef for closure compatibility (#26975) PR Close #26975 --- packages/core/src/change_detection/differs/iterable_differs.ts | 1 + packages/core/src/di/injector.ts | 1 + 2 files changed, 2 insertions(+) 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),