country-currency-symbol
Version:
A simple angular service to generate Currency Symbol by taking Country Code as argument
29 lines (19 loc) • 634 B
Markdown
# CurrencySymbol
This library was generated with [Angular CLI](https://github.com/angular/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');
}
}
```