Is there a way to check if a property has some decorator?
There is a way to do this:
<input type="text" id="name" class="form-control"
[required]='model.decorator["required"]' [minlength]='=model.decorator["minlength"]?.value' maxlength="24"
name="name" [(ngModel)]="hero.name"
#name="ngModel" >
source
share