Skip to content

Commit aa905ff

Browse files
committed
fix: bind environment injector in runInContext
1 parent 757692c commit aa905ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/angular-three/src/lib/di/run-in-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function createRunInContext() {
44
const nodeInjector = inject(Injector);
55
const envInjector = inject(EnvironmentInjector);
66

7-
const originalGet = envInjector.get;
7+
const originalGet = envInjector.get.bind(envInjector);
88

99
return <TReturn>(cb: () => TReturn): TReturn => {
1010
envInjector.get = (...args: Parameters<EnvironmentInjector['get']>) => {

0 commit comments

Comments
 (0)