npm install fe-validate# F.E.Mock fe-validate
+ Angular >=4.0.0
You can get it on npm.
``sh`
npm install fe-validate --save
app.module.ts:
`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 {}
``