@Input
An Input property is a settable property annotated with an @Input
decorator. Values flow into the property when it is data bound with a property binding.
Example
@Input() test: any;
Alternatively, you can identify members in the inputs array of the directive metadata:
@Component({
inputs: ['test'],
})
Options
@Input(propertyBindingName: string)
bindingPropertyName
#
bindingPropertyName?: string