Updating [placeholder] Reactive Form Control Programmatically
问题 I have the following formControl as part of my Reactive Form: <input class="input" formControlName="email" [placeholder]=""> I was wondering if there were a way to set the placeholder programmatically? Something like: this.formGroup.get('email').placeholder = 'Some value'; 回答1: The placeholder is a property of the HTML element itself, not the formGroup . You can directly bind it like you're doing with a component property ( [placeholder]="someValue" ) and Angular's change detection will