Is it possible to dynamically set the placeholders for
<input type='date' placeholder='{{ 'currentDate' }}'>
? I have tried using the following variable: currentDate = this.datePipe.transform(new Date(), "yyyy-MM-dd");
, but unfortunately, it does not seem to work as expected.
Any suggestions on how to successfully use this method to dynamically set the placeholder for current dates?