fe-form-validate
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

# F.E.Mock fe-form-validate

Dependencies

  • Angular >=4.0.0

Install

You can get it on npm.

npm install fe-form-validate --save

Usage

app.module.ts:

import { FormValidationModule } from 'fe-form-validate';
import { DEFAULT_ERRORS } from '../form-validate.message'; // Custom message
 
@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        ...
        FormValidationModule.forRoot(DEFAULT_ERRORS),
    ],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule {}

You need either set
demo.html:

<div class="tools-bar">
    <button type="button" ngxClipboard [cbContent]="jsonCode" (click)="selectAllClicked(resultJson)">复制</button>
</div>
<div class="code" #resultCode>
    <pre #resultJson class="json-code"></pre>
</div>

Package Sidebar

Install

npm i fe-form-validate

Weekly Downloads

0

Version

0.0.6

License

MIT

Last publish

Collaborators

  • itwang