https://nbfontana.github.io/ngx-br/
Install through npm:
npm install --save ngx-br
Then include in your apps module:
import { Component, NgModule } from '@angular/core';
import { NgxBrModule } from 'ngx-br';
@NgModule({
imports: [
NgxBrModule.forRoot()
]
})
export class MyModule {}
Finally use in one of your apps components:
import { Component } from '@angular/core';
@Component({
template: '<cpf [placeholder]="'Digite seu CPF'"></cpf>'
})
export class MyComponent {}
You may also find it useful to view the demo source.
<script src="node_modules/ngx-br/bundles/ngx-br.umd.js"></script>
<script>
// everything is exported ngxBr namespace
</script>
- Install Node.js and NPM
- Install local dev dependencies:
npm install
while current directory is this repo
Run npm start
or npm run demo
to start a development server on port 8000 with auto reload + tests.
Run npm test
to run tests once or npm run test:watch
to continually run tests.
MIT @ Neri Bez Fontana