I have one textbox and initially it would be displaying some placeholder
<textarea class="some class" placeholder={{Some placeholder from REST API}}><textarea>
I want to disable this placeholder based on some boolean condition?
<textarea [placeholder]="condition ? 'haha' : ''"></textarea>
If the placeholder from API is contained in variable, say: "apiPlaceHol" Then use it like this:
<textarea [placeholder]="condition ? apiPlaceHol : ''"></textarea>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With