Site icon Salesforce Diaries

LWC Exchange – Scenario 4

Salesforce Diaries

Generic Distance Calculator Service Component in Lightning Web Component

In this scenario, You are going to work on writing a service component in Lightning Web Component to calculate distance between two coordinates when location coordinates are passed to it as parameter. This service component should be called from some other Lightning Web Component which has input location component.

This problem statement has been designed for developer who are Intermediate in Lightning Web Component.

Problem Statement

Service Lightning Web Component

Main Lightning Web Component

Do you need help?

Are you stuck while working on this requirement? Do you want to get review of your solution? Now, you can book dedicated 1:1 with me on Lightning Web Component completely free.

GET IN TOUCH

Schedule a 1:1 Meeting with me

Do not forget to paste your code in comment for this scenario. It would help others in case they get stuck. Also check out https://salesforcediaries.com/category/lightning-web-component/ to learn more on LWC.

Exit mobile version