0.2.0 • Published 5 years ago

form-control-errors v0.2.0

Weekly downloads
45
License
-
Repository
-
Last release
5 years ago

This is a package built to make displaying validation errors from Angular Form Controls easier.

Installation

In module:

import { NgFormErrorsModule } from 'form-control-errors'    
...
imports: [
    ...       
    NgFormErrorsModule,       
    ...      
]

Use

<lib-form-errors [form]="exampleForm" [errorMsgs]="errorMsgs"></lib-form-errors>

form should be an Angular form group
errorMsgs should be an object of the following format

{
  email: 'is not formatted correctly',
  required: 'is required'
}

where the key is the error key returned by the validator and the value is the message to display

0.2.0

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago