Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ngx-num-to-words

anthonynahas838MIT15.0.1TypeScript support: included

Material password strength meter to indicate how secure is the provided password

ng, n2words, library, convert, number, words, text, language, English, Arabic, Czech, Danish, German, Spanish, French, Farsi, Hebrew, Italian, Korean, Lithuanian, Latvian, Dutch, Norwegian, Polish, Portuguese, Russian, Serbian, Turkish, Ukrainian

readme

angular-material-extensions's logo

ngx-num-to-words - Angular library simplifying generation of mailto links with Typescript

highly inspired and depends on n2words Big thanks to @forzagreen :heart

--> nodejs module

npm version npm demo docs: typedoc Join the chat at https://gitter.im/angular-material-extensions/Lobby license

ngx-num-to-words demonstration

Built by and for developers :heart:

Do you have any question or suggestion ? Please do not hesitate to contact us! Alternatively, provide a PR | open an appropriate issue here

If you like this project, support angular-material-extensions by starring :star: and sharing it :loudspeaker:

Table of Contents

Demo

View all the directives and components in action at https://anthonynahas.github.io/ngx-num-to-words


Dependencies

  • Angular developed and tested with 11.x

Installation

Install via npm. (Alternative)

Now install ngx-num-to-words via:

npm install --save n2words ngx-num-to-words 

Import the library

If you installed the library via angular schematics, you can skip this step

import { NgxNumToWordsModule } from 'ngx-num-to-words'; 

@NgModule({
  declarations: [AppComponent, ...],
  imports: [NgxNumToWordsModule, ...],  
  bootstrap: [AppComponent]
})
export class AppModule {
}

Other modules in your application like for lazy loading import NgxNumToWordsModule into your feature module:

API

Using the service

<h1><b>{{numberInWords}}</b></h1>
import { NgxNumToWordsService, SUPPORTED_LANGUAGE } from 'ngx-num-to-words';


numberInWords!: string;
lang!: SUPPORTED_LANGUAGE = 'en';
value = 123;

 constructor(private ngxNumToWordsService: NgxNumToWordsService) {
  }


ngOnInit(): void {

    this.numberInWords = this.ngxNumToWordsService.inWords(value, this.lang);

 }



Using the pipe inWords


<span>{{ 123 | inWords }}</span> // default en language
<span>{{ 123 | inWords:'de' }}</span> // custom language --> german in this case

hier are some example

ngx-num-to-words demonstration

ngx-num-to-words demonstration

ngx-num-to-words demonstration

ngx-num-to-words demonstration

ngx-num-to-words demonstration

ngx-num-to-words demonstration

ngx-num-to-words demonstration

ngx-num-to-words demonstration

Supported Languages

  • en (English, default)
  • ar (Arabic)
  • cz (Czech)
  • dk (Danish)
  • de (German)
  • es (Spanish)
  • fr (French)
  • fa (Farsi)
  • he (Hebrew)
  • it (Italian)
  • ko (Korean)
  • lt (Lithuanian)
  • lv (Latvian)
  • nl (Dutch)
  • no (Norwegian)
  • pl (Polish)
  • pt (Portuguese)
  • ru (Russian)
  • sr (Serbian)
  • tr (Turkish)
  • uk (Ukrainian)

Run Demo App Locally

Build the library

$ npm run build:lib

Serve the demo app

$ npm start

Other Angular Libraries



Who is using this library? Awesome apps?

  1. Nahaus.de - Digitale und automatisierte Immobilienverwaltung Software für privat Vermieter und Hausverwaltungen

Are you missing your project or you app? PR me to publish it on the README


Support


jetbrains logo

This project is supported by jetbrains with 1 ALL PRODUCTS PACK OS LICENSE incl. webstorm


License

Copyright (c) 2020 Anthony Nahas. Licensed under the MIT License (MIT)

angular-material-extensions's logo

changelog

1.0.0 (2020-11-30)

Bug Fixes

  • demo: added angular flex layout (6bbd590)
  • demo: enhanced and improved the demo app (7908109)
  • demo: updated the view in demo project (7065b63)
  • lib: enhanced the package.json file (d9dd17d)

Features

  • project: added angular material (242cb1e)
  • project: added support of angular universal (2a205b6)
  • project: added the core functionality to the library (357ae30)
  • project: generated the ngx-num-to-words library (cac5844)