@ioniczoo/bird-format-pipe

0.0.7 • Public • Published

npm npm npm

bird

---

Bird Format Pipe

Format Pipe for Ionic

Install

npm install @ioniczoo/bird-format-pipe --save

Import

import { NgModule } from '@angular/core';
import { FormatPipeModule } from '@ioniczoo/bird-format-pipe';

@NgModule({
  imports: [
    FormatPipeModule
  ],
  declarations: []
})
export class AppModule {}

Examples

<!-- CPF Format -->
<span>{{ cpf | format:'999.999.999-99' }}</span><br/>

<!-- Phone Variable Format -->
<span>{{ tel | format:'(99) 9 9999-9999' }}</span><br/>

<!-- Phone String Format -->
<span>{{ '719988776655' | format:'(99) 9 9999-9999' }}</span><br/>

<!-- Phone Number Format -->
<span>{{ 719988776655 | format:'(99) 9 9999-9999' }}</span><br/>

Author

André Argôlo

Contribute

Create issues and request pull-request.

License

GNU General Public License v3.0

/@ioniczoo/bird-format-pipe/

    Package Sidebar

    Install

    npm i @ioniczoo/bird-format-pipe

    Weekly Downloads

    2

    Version

    0.0.7

    License

    SEE LICENSE IN GNU GPLv3

    Last publish

    Collaborators

    • argolo
    • jprodrigues70