Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Commit 780279c

Browse files
committed
refactor: use local declaration of the change detection strategy enum
1 parent b755ea7 commit 780279c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

projects/ng-devtools-backend/src/lib/component-tree.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ import {
1010
UpdatedStateData,
1111
} from 'protocol';
1212
import { buildDirectiveTree, getLViewFromDirectiveOrElementInstance } from './directive-forest';
13-
import { ChangeDetectionStrategy } from '@angular/core';
13+
14+
// Need to be kept in sync with Angular framework
15+
// We can't directly import it from framework now
16+
// because this also pulls up the security policies
17+
// for Trusted Types, which we reinstantiate.
18+
enum ChangeDetectionStrategy {
19+
OnPush = 0,
20+
Default = 1,
21+
}
1422

1523
const ngDebug = () => (window as any).ng;
1624

0 commit comments

Comments
 (0)