ngx-thaibahtpipe
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ngx-ThaiBahtPipe

An Angular pipe that transforms number into Thai words. Nothing more, nothing less.

npm version

Install

npm

npm install --save ngx-thaibahtpipe

Import it to your app's module

import { NgModule } from '@angular/core';
import { ThaiBahtPipeModule } from 'ngx-thaibahtpipe';
 
@NgModule({
    imports: [ThaiBahtPipeModule]
})
export class AppModule {}

Usage

{{ 1021.00 | thaibaht }} <!-- หนึ่งพันยี่สิบเอ็ดบาทถ้วน -->
{{ 701021 | thaibaht }} <!-- เจ็ดแสนหนึ่งพันยี่สิบเอ็ดบาทถ้วน -->
{{ 101701021.00 | thaibaht }} <!-- หนึ่งร้อยเอ็ดล้านเจ็ดแสนหนึ่งพันยี่สิบเอ็ดบาทถ้วน -->
 
{{ 11.10 | thaibaht }} <!-- สิบเอ็ดบาทสิบสตางค์ -->

Package Sidebar

Install

npm i ngx-thaibahtpipe

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

80.9 kB

Total Files

23

Last publish

Collaborators

  • thanapongp