W3cubDocs

/Angular

TransformedValueOptions

Options for transformedValue.

API

interface TransformedValueOptions<TValue, TRaw> {
  parse: (rawValue: TRaw) => ParseResult<TValue>;
  format: (value: TValue) => TRaw;
}

parse

(rawValue: TRaw) => ParseResult<TValue>

Parse the raw value into the model value.

Should return an object containing the parsed result, which may contain:

  • value: The parsed model value. If undefined, the model will not be updated.
  • error: Any parse errors encountered. If undefined, no errors are reported.

format

(value: TValue) => TRaw

Format the model value into the raw value.

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/TransformedValueOptions