1.1.1 • Published 5 years ago
currency-conversion-lib v1.1.1
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 --saveChoose 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>