Input
decorator
Decorator that marks a class field as an input property and supplies configuration metadata. The input property is bound to a DOM property in the template. During change detection, Angular automatically updates the data property with the DOM property's value.
API
Usage Notes
@Input ({})
alias
string | undefined
The name of the DOM property to which the input property is bound.
required
boolean | undefined
Whether the input is required for the directive to function.
transform
((value: any) => any) | undefined
Function with which to transform the input value before assigning it to the directive instance.
Jump to details