You need to sign in to do that
Don't have an account?
ChargeBee
How to use labels in lighting component javascript with 'Dynamically Populating Label Parameters'?
How can we use custom labels in lighting component's javascript controller with 'Dynamically Populating Label Parameters'. We have referred to this document https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/labels_parameters.htm. But it talks about label parameters for the component markup only.
Is there any way to do the same from the javascript controller?
Is there any way to do the same from the javascript controller?
You can import the labels in your JavaScript class file using below:
You can refer the following link for an example: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.create_labels