I have an Aura component with a lighting:datatable
. I have a row action which opens another aura component but I'm trying to understand how I would open its LWC replacement. Here is what I currently have for the row action selected:
else if (action.name == 'view_gs_lwc') {
var gslistLWC = {
type: 'standard__component',
attributes: {
componentName:'c:gslistLWC'
},
state: {
"c__Aid": row.Id
}
};
component.set("v.gslistLWC",gslistLWC);
var navService = component.find("navService");
var PageReference = component.get("v.gslistLWC");
event.preventDefault();
navService.navigate(PageReference);
Any help would be greatly appreciated! thanks!