Navigate from Lightning Web Component to another LWC or AURA component Salesforce | LWC Stack ☁️⚡️

Описание к видео Navigate from Lightning Web Component to another LWC or AURA component Salesforce | LWC Stack ☁️⚡️

In this video I will share two ways to navigate from a Lightning Web Component to another Lightning Web Component.

Navigate using AURA Component - In this method we will embed our Lightning Web Component in an AURA component. We will use aura because for redirection we will be using isUrlAddressable which is available in aura only. So technically it's more over like redirecting to an Aura component which is embedding LWC inside it.

Navigate without AURA Component - In this method we will use the one.app url to redirect to the target LWC. We will convert the component definition to a base64 encoded string first then we will pass the data in the url itself.

In this demo I will create 3 components -
1. navigateFromLWC - The source component from which we will be redirecting to another LWC component.
2. navigateToLWC - The target component to which we will make the redirection.
3. navigateToLWCAura - Aura component which will embed navigateToLWC.

#Navigation #Salesforce #LWC

Join me on Instagram :   / iamkapilbatra  

Blog : https://www.salesforcebolt.com/2022/0...

Website : https://www.salesforcebolt.com​​

LinkedIn :   / salesforcebolt  

Twitter :   / salesforcebolt​​  

Facebook :   / iamsalesforcebolt  

Комментарии

Информация по комментариям в разработке