Syntax $Label.namespace.LabelNameif your org not having any names space use default namespace ‘c’ Let us create a custom label with name Label1 Lightning Component Controller ({ getLabelValue : function(component, event, helper) { var labelValue = $A.get(“$Label.c.Label1”); component.set(‘v.strLabelvalue’, labelValue); }, })
January 2020 archive
Permanent link to this article: https://salesforcebuddy.com/2020/01/how-to-display-custom-labels-in-lighting-aura-components/
Jan 12
How To Display Lightning Component In Visualforce Page
Lightning Components for Visualforce is based on Lightning Out, a powerful and flexible feature that lets you embed Lightning components into almost any web page. When used with Visualforce, some of the details become simpler. For example, you don’t need to deal with authentication, and you don’t need to configure a Connected App. In this …
Permanent link to this article: https://salesforcebuddy.com/2020/01/how-to-display-lightning-component-in-visualforce-page/
Jan 12
How to rename Lightning component
We can run below query in developer console query editor. It will return all the aura component name in DeveloperName column. SELECT Id, DeveloperName, MasterLabel FROM AuraDefinitionBundle Now we can edit Developer Name, MasterLabel and save it. It will reflect all the place wherever the component is used. If you are using the component in controller and helper, It …
Permanent link to this article: https://salesforcebuddy.com/2020/01/how-to-rename-lightning-component/