0.0.7 • Published 4 years ago

@lmappdev/lmutility v0.0.7

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

This is an angular library for commonly used directives and pipes

List of validator directives and pipes

  • DateOfBirthValidator,
  • EmailValidator,
  • LimitToDirective,
  • NoPOBoxValidator,
  • NumberOnlyDirective,
  • PhoneValidator,
  • PositiveIntegerValidator,
  • SsnValidator,
  • TouchedDirtyWithErrorsDirective,
  • YearMonthValidator,
  • ValidationMessagePipe,
  • ZeroToXNumber

Example on how to use NumberOnlyDirective, LimitToDirective, TouchedDirtyWithErrorsDirective, ValidationMessagePipe

<mat-form-field>
    <mat-label>Zip</mat-label>
    <input type="text" name="zipCode" placeholder="Zip" #zipCodeModel="ngModel" NumberOnly="true" limit-to="5" matInput required />
    <mat-error *touchedWithErrors="zipCodeModel">
        {{ zipCodeModel | validationMessage: { 'required': 'Zip Code is not specified.'} }}
    </mat-error>
</mat-form-field>
0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago