nbfontana / ngx-br Goto Github PK
View Code? Open in Web Editor NEW📦 The brazilian module for Angular
Home Page: https://nbfontana.github.io/ngx-br
License: MIT License
📦 The brazilian module for Angular
Home Page: https://nbfontana.github.io/ngx-br
License: MIT License
Today we have a Telefone component that handles both, cell phone and fixed phone number, but we should have a simple one only with a cell phone mask.
The feature should include a pipe and a mask as well.
<cpf .... required></cpf>
inject 'required' into <input cpfMask...
.
BTW, this could be the default behavior of any attribute, by-pass them to component.
It ignores the 'required' attribute.
Today we have a Telefone component that handles both, cell phone and fixed phone number, but we should have a simple one only with a fixed phone mask.
The feature should include a pipe and a mask as well.
Telefone component should mask both, residential phone numbers and cell phone numbers
<cpfCnpj ....>
to format/parse acording to input value.
None
Suggested changes
The input cpf, cnpj, tel and cep change to type = "tel".
Improves typing on mobile
Feel free to give some Ideas for the project!
The model value has the unformatted field value, but on error handling the formatted value typed could be used in user feedbacks, i.e. 'O CPF '000.111.222-33' é inválido.'
Could not find the formatted value on formcontrol. I´ll have to use vanilla to format my customized error or use some sort of feature to recover ElementRef to get nativeValue, with this 'feature' it would not be required.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.