/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/src/app/editor/inject-node-runtime-sandbox.ts
15 строк
521 B
Matthieu Riegler
feat(core): Add a `injectAsync` helper function
28 апр 2026, 22:01
28 апр 2026, 22:01
444b024
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {EnvironmentInjector, injectAsync, runInInjectionContext} from '@angular/core'; export function injectNodeRuntimeSandbox(injector: EnvironmentInjector) { return runInInjectionContext(injector, () => injectAsync(() => import('./node-runtime-sandbox.service').then((c) => c.NodeRuntimeSandbox))(), ); }