currency-conversion-lib
v1.1.1
Published
This library provides the micro app for currency conversion from base currency to any target country currency.
Downloads
3
Readme
Currency Conversion Lib
This library provides the micro app for currency conversion from base currency to any target country currency.
Installation
Just run the following:
npm install currency-conversion-lib --save
Choose the version corresponding to your Angular version:
Angular | currency-conversion-lib | ----------- | ----------------------- | 11 | 1.x+ |
Usage
1. Generate ExchangeRate-API access token
For generating token for ExchangeRate-API please refer link https://www.exchangerate-api.com/
2. Import the CurrencyConversionModule
:
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {CurrencyConversionModule} from 'currency-conversion-lib';
@NgModule({
imports: [
BrowserModule,
CurrencyConversionModule.forRoot({
access_token: '<Your Token to ExchangeRate-API service>'
})
],
bootstrap: [AppComponent]
})
export class AppModule { }
3. Use the component
This is how you include the component:
<sklib-currency-conversion></sklib-currency-conversion>