Skip to content

1.1.0

Compare
Choose a tag to compare
@toddmotto toddmotto released this 13 Apr 18:44
· 22 commits to master since this release

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