0.0.5 • Published 6 years ago
fe-validate v0.0.5
F.E.Mock fe-validate
Dependencies
- Angular >=4.0.0
Install
You can get it on npm.
npm install fe-validate --save
Usage
app.module.ts:
import { FormValidationModule, CUSTOM_ERROR_MESSAGES } from 'fe-validate';
import { customErrorMessages } from '../validate.message'; // Custom message
@NgModule({
declarations: [
AppComponent
],
imports: [
...
FormValidationModule.forRoot()
],
providers: [
{ provide: CUSTOM_ERROR_MESSAGES, useValue: customErrorMessages }
],
bootstrap: [AppComponent]
})
export class AppModule {}