MetadataKey
Represents metadata that is aggregated from multiple parts according to the key's reducer function. A value can be contributed to the aggregated value for a field using an metadata rule in the schema. There may be multiple rules in a schema that contribute values to the same MetadataKey of the same field.
API
class MetadataKey<TRead, TWrite, TAcc> {
protected constructor(reducer: MetadataReducer<TAcc, TWrite>, create: ((state: FieldState<unknown, string | number>, data: Signal<TAcc>) => TRead) | undefined): MetadataKey<TRead, TWrite, TAcc>;
}
constructor
MetadataKey<TRead, TWrite, TAcc>Use createMetadataKey.
@paramcreate
((state: FieldState<unknown, string | number>, data: Signal<TAcc>) => TRead) | undefined
@returns
MetadataKey<TRead, TWrite, TAcc>
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/MetadataKey