ngx-bank-account-br
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc30 • Public • Published

Ngx-bank-account-br

Ngx-bank-account-br is an ultra simple cnpj validator for Angular.io.

basic-merchandising

Disclaimer: I use this module for personal projects, which means it is designed to fulfill their specific use cases. The code I develop is crafted with reuse and generalization in mind, still, it may or may not fulfill for your requirements. In case it does not, please feel free to submit a pull request, create a fork or contact me at lpachecoquevedo@gmail.com so we can figure something out together. Thank you for reading this!

Installing

$ npm install --save ngx-bank-account-br

Quickstart

Import

Import ngx-bank-account-br module in Angular app.

import { NgxBankAccountBr } from 'ngx-bank-account-br'
 
(...)
 
@NgModule({
  (...)
  imports: [
    NgxBankAccountBr
  ]
  (...)
})

Usage

In your template, you can declare the ngx-bank-account-br as the following:

<form>
    <!-- Input with the CPF validator -->
    <input type="tel" ngx-cnpj [(ngModel)]="user.cnpj" name="userCnpj" #cnpjInput >
</form>
 

And that's all there is about it.

  • Any doubts? Fell free to open an issue.
  • Improvements? Pull requests are always come!
  • Suggestions? Of course: Let's talk!
MIT @ Leonardo Quevedo. 2018.

Package Sidebar

Install

npm i ngx-bank-account-br

Weekly Downloads

4

Version

1.0.0-rc30

License

MIT

Unpacked Size

123 kB

Total Files

23

Last publish

Collaborators

  • leopq