Angular 2 Material Input change placeholder dynamically
We can do that using property binding.
In the HTML, use square brackets:
<input formControlName="events" type="text" [placeholder]="newPlaceHolder">
In your typescript file, define the property:
newPlaceHolder: string = "original place holder";
Then, change the property value:
newPlaceHolder= "my new place holder";
you can change your input placeholder dynamically like this
<md-input-container class="demo-full-width">
<input mdInput [(ngModel)]="firstname" placeholder="{{somePlaceholder}}" name="firstname" required>
<md-error>This field is required</md-error>
</md-input-container>
component.ts
somePlaceholder : string = "new value";
now you can change somePlaceholder value any where in the class.