Contents
How are lightning Web Components used in Lightning communities?
Lightning Web Components was built on top of web standards like Web Components, Custom Elements, and more. This means that much of Lightning Web Components is natively supported by the browser (Polyfills and transpilation are used for browsers that don’t support some of the web standards).
If you’ve worked with Lightning Communities in the past, you would have modified the navigation menu and items to drive the available options in the theme’s navigation menu. As of Summer ’20, this functionally has expanded even more to support the tile navigation component.
Why do we need a lightning data service?
Lightning Data Service allows components to interact with Salesforce data without having to worry about performant boilerplate code. Because of how Lightning Web Components is built, the Lightning Data Service boilerplate is kept in the JavaScript file.
What are lightning communities used for in Salesforce?
Lightning Communities are used to provide apps and services directly to your customers and partners.
Can a lightning web component be in an aura component?
You can also create an Aura component that includes Lightning Web Components. However, you can not create a Lightning web component that includes Aura Components. Check out the Salesforce Developer Guide if you want to know how to add a Lightning web component inside an Aura component.
How to communicate between parent and child Lightning components?
To communicate between parent and child Lightning Web Components, use custom events that are built from standard DOM Events supported in each browser. If you need to communicate between components that aren’t in the same component hierarchy, you can use a publish-subscribe module.
How to create a community in Salesforce Lightning?
If you want an icon other than the default to appear next to your component in the Community Builder component palette, add your own SVG file titled the same name as the other files (ex. myLightningWebComponent.svg). If you are new to Communities, check out this help article or this Trailhead module to learn how to create a community in Salesforce.