1.1.0
Features
- Added support for conditions for
.hasError
, example:
<div [ngClass]="{ required: myError.hasError('required', ['dirty', 'touched']) }">
<input type="text" formControlName="username">
</div>
<div ngxErrors="username" #myError="ngxErrors">
<div ngxError="required" [when]="dirty">
Field is required
</div>
</div>
Deprecations/Breaking Changes
- None