fix(ivy): add `nocollapse` to ngInjectableDef for closure compatibility (#26975)

PR Close #26975
This commit is contained in:
Miško Hevery 2018-11-05 15:10:04 -08:00 committed by Kara Erickson
parent 931a363612
commit 5e769d9a25
2 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ export interface IterableDifferFactory {
* @publicApi
*/
export class IterableDiffers {
/** @nocollapse */
static ngInjectableDef = defineInjectable({
providedIn: 'root',
factory: () => new IterableDiffers([new DefaultIterableDifferFactory()])

View File

@ -103,6 +103,7 @@ export abstract class Injector {
}
}
/** @nocollapse */
static ngInjectableDef = defineInjectable({
providedIn: 'any' as any,
factory: () => inject(INJECTOR),