Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renatosistemasvc/soft-angular-mask
mask to angular 2+
https://github.com/renatosistemasvc/soft-angular-mask
Last synced: 9 days ago
JSON representation
mask to angular 2+
- Host: GitHub
- URL: https://github.com/renatosistemasvc/soft-angular-mask
- Owner: renatosistemasvc
- Created: 2017-08-16T00:06:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-24T17:38:04.000Z (almost 7 years ago)
- Last Synced: 2024-09-18T00:52:30.659Z (about 2 months ago)
- Language: JavaScript
- Size: 58.6 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
- awesome-angular-components - soft-angular-mask - Directive to masquerade input in angular 2/4 (money and number). (Uncategorized / Uncategorized)
- awesome-angular-components - soft-angular-mask - Directive to masquerade input in angular 2/4 (money and number). (Uncategorized / Uncategorized)
README
# mask to input Angular 2+
## Description
Directive to masquerade input in angular 2/4 (money and number).
## Demo
## Example mask
(087) 8745-9876 - 76888-098 - R$ 1.234,00 - $ 1.00
## Installation
To install this library, run:
```bash
$ npm install soft-angular-mask --save
```
and then from your Angular `AppModule`:```typescript
...// Import library
import { MaskModule } from 'soft-angular-mask';@NgModule({
...
imports: [MaskModule
],
...
})
export class AppModule { }
```Use in your Angular application:
```xml
```
## Options - mask-number
```xml
[mask]="'9'"
[reqMin]="1"
[maskkOutput]="true"
```## Options - mask-money
```xml
[prefix]="'R$'"
```## Solicitation of improvements
SouUmLucas (10/11/2017) - enable output of ngModel masked / status: implemented
## License
MIT © [Renato Souza de Oliveira](mailto:[email protected])
email: mailto:[email protected]