In this example, we will see how to pass the attribute value to aura component when redirecting to Aura component from LWC component.
We have two components:-
- lwcToAuraNavigation :- This is a Lightning web component
- accountAuraComponent :- This is an aura Component
The lightning web component has three file in its bundle. They are:-
- lwcToAuraNavigation .html
- lwcToAuraNavigation .js
- lwcToAuraNavigation .js-meta.xml
The html file has lightning-button , on click of button it will redirect to aura component.