I'm trying to omit an attribute with ngIf
, or something similar in Angular:
<input type="text" maxlength="5" class="form-control-mat"
*ngIf="recomendacion!=undefined" [placeholder]="recomendacion" >
This is what I have right now, but instead of omitting the attribute placeholder
, it skips the entire element.
Is it possible to apply something similar that works on attributes?