/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/forms/signals/src/field/di.ts
15 строк
515 B
Miles Malerba
feat(forms): add DI option for classes on `Field` directive
25 ноя 2025, 18:33
Не верифицирован
25 ноя 2025, 18:33
c70e246
Код
Авторство
О чём код?
/** * @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 {InjectionToken} from '@angular/core'; import type {SignalFormsConfig} from '../api/di'; /** Injection token for the signal forms configuration. */ export const SIGNAL_FORMS_CONFIG = new InjectionToken<SignalFormsConfig>( typeof ngDevMode !== 'undefined' && ngDevMode ? 'SIGNAL_FORMS_CONFIG' : '', );