ngx-br-tank
v0.3.3
Published
[![Build Status](https://travis-ci.org/nbfontana/ngx-br.svg?branch=master)](https://travis-ci.org/nbfontana/ngx-br) [![npm version](https://badge.fury.io/js/ngx-br.svg)](http://badge.fury.io/js/ngx-br) [![devDependency Status](https://david-dm.org/nbfon
Downloads
4
Maintainers
Readme
ngx br
Demo
https://nbfontana.github.io/ngx-br/
Table of contents
About
Installation
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.
Usage without a module bundler
<script src="node_modules/ngx-br/bundles/ngx-br.umd.js"></script>
<script>
// everything is exported ngxBr namespace
</script>
Development
Prepare your environment
- Install Node.js and NPM
- Install local dev dependencies:
npm install
while current directory is this repo
Development server
Run npm start
or npm run demo
to start a development server on port 8000 with auto reload + tests.
Testing
Run npm test
to run tests once or npm run test:watch
to continually run tests.
License
MIT @ Neri Bez Fontana