W3cubDocs

/Angular

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: ((s: Signal<TAcc>) => TRead) | undefined): MetadataKey<TRead, TWrite, TAcc>;
}

constructor

MetadataKey<TRead, TWrite, TAcc>
@paramreducerMetadataReducer<TAcc, TWrite>
@paramcreate((s: Signal<TAcc>) => TRead) | undefined
@returnsMetadataKey<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