1.0.1 • Published 5 months ago

country-currency-symbol v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

CurrencySymbol

This library was generated with Angular CLI version 10.2.5.

A simple lightweight library that returns a currency symbol from the country code.

Example

import { Component } from '@angular/core';
import { CurrencySymbolService } from 'currency-symbol';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  currency;

  constructor(private currencySymbolService: CurrencySymbolService) {
    this.currency = this.currencySymbolService.currencySymbol('GB');
  }
}