إجمالي مرات مشاهدة الصفحة

Account search, Apex classes, aura, custom search, Future Method, khumedsfdc, Lighning component, lightnig aura component, Lightning App, Lightning Component, Lightning Component Framework, lwc s, salesforce LWC,

Creating a Currency converter Application using LWC (Lightning Web Components) With Server Side Apex Class.




First, create an Apex class that will interact with the https://api.exchangerate.host/convert API to retrieve the currency conversion rates. You can use the following code


Create a new Lightning Web Component in your Salesforce developer account. You can name it as "Currency Converter". Use the following code as the component's template:


Use the following code as the component's JavaScript file:


Use the following code as the component's CSS file:


Save the component and add it to a Lightning page in your Salesforce developer account. You can then preview the page and use the Currency Converter component to convert currencies.


😇😇😇 HAPPY CODING SHARING IS CARING 😇😇😇