Contents
How do you communicate between lightning components?
To communicate across the subtrees in the DOM (and under some circumstances between different browser windows logged into the same org), use Lightning message service (LMS). LMS is a publish and subscribe service that facilitates communication between Lightning web components, Aura components, and Visualforce pages.
How do I assign a Lightning record to a page?
Assigning custom Lightning Record Pages to standard Lightning console applications
- In Lightning Experience click Setup | Object Manager.
- Click an Object from the list.
- Click on Lightning Record Pages from the left hand panel.
- Click on the View Page Assignments button in the top right corner.
What is bubble and capture phase in lightning?
Capture phase—The framework executes the capture phase from the application root to the source component until all components are traversed. Bubble phase—The framework executes the bubble phase from the source component to the application root until all components are traversed or stopPropagation() is called.
Can we deploy Lightning record page?
Currently you can add Lightning Record Pages to Outbound Change Sets under the Lightning Page option of the Component Type combo box. However, when uploading the change set, it doesn’t carry over the Org Default assignment or the App Default assignment. It would be useful to allow these assignments into the Change Set.
How to link to a lightning experience page?
To link to Lightning Experience pages, use lightning:formattedUrl in your custom component. The lightning:formattedUrl component displays a URL as a hyperlink. If you use raw anchor tags or the ui:outputUrl (deprecated) component for links, the page does a full reload each time you click the link.
I am new to salesforce Lightning component and I meet a problem about how to navigate from one lightning component to another Lightning component,I want to know what is the best practise for it?
How to optimize the performance of Lightning components?
Optimize server round-trips: Before making a call to the server, make sure there’s no other option to obtain the data. When appropriate, consider passing data between components (using attributes, events, or methods) rather than retrieving the same data in different components.
How are lightning pages different from Visualforce pages?
“Lightning pages occupy a middle ground between page layouts and Visualforce pages. Like a page layout, Lightning pages allow you to add custom items to a page. However, these items, instead of being Visualforce components, are Lightning components, which allow much more flexibility.”