Mapping configuration for transforming an attribute. Allows renaming, providing default values, and applying custom transformation functions.
TransformArgumentMapping
{ * to: 'ng-if', * default: false, * transform: (val) => !!val * } Copy
{ * to: 'ng-if', * default: false, * transform: (val) => !!val * }
Optional
Default value if attribute is not provided
The new attribute name (if different from original)
Function to transform attribute value
Mapping configuration for transforming an attribute. Allows renaming, providing default values, and applying custom transformation functions.
TransformArgumentMapping
Example