Reputation: 342
I am trying to conditionally hide form validation items with the [hidden]
attribute. It works but it blinks on page load even though I added model.pristine
to the form.
<div class="alert alert-danger" [hidden]="model.valid || model.pristine">
The model is required.
</div>
Upvotes: 2
Views: 1249