fix(ivy): add `nocollapse` to ngInjectableDef for closure compatibility (#26975)
PR Close #26975
This commit is contained in:
parent
931a363612
commit
5e769d9a25
|
@ -139,6 +139,7 @@ export interface IterableDifferFactory {
|
||||||
* @publicApi
|
* @publicApi
|
||||||
*/
|
*/
|
||||||
export class IterableDiffers {
|
export class IterableDiffers {
|
||||||
|
/** @nocollapse */
|
||||||
static ngInjectableDef = defineInjectable({
|
static ngInjectableDef = defineInjectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
factory: () => new IterableDiffers([new DefaultIterableDifferFactory()])
|
factory: () => new IterableDiffers([new DefaultIterableDifferFactory()])
|
||||||
|
|
|
@ -103,6 +103,7 @@ export abstract class Injector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @nocollapse */
|
||||||
static ngInjectableDef = defineInjectable({
|
static ngInjectableDef = defineInjectable({
|
||||||
providedIn: 'any' as any,
|
providedIn: 'any' as any,
|
||||||
factory: () => inject(INJECTOR),
|
factory: () => inject(INJECTOR),
|
||||||
|
|
Loading…
Reference in New Issue