You need to sign in to do that
Don't have an account?
saranya sista 4
controller---------
var navService = component.find("navService");
var pageReference = {
type: "standard__component",
attributes: {
componentName: "c__peDetail"
},
state: {
"projectId": PID
}
};
console.log(pageReference);
navService.navigate(pageReference);
defined the variable in cmp --
<lightning:navigation aura:id="navService" />
<aura:attribute name="pageReference" type="Object"/>
[navService.navigate is not a function] . could someone please suggest the possible reason for this error .
controller---------
var navService = component.find("navService");
var pageReference = {
type: "standard__component",
attributes: {
componentName: "c__peDetail"
},
state: {
"projectId": PID
}
};
console.log(pageReference);
navService.navigate(pageReference);
defined the variable in cmp --
<lightning:navigation aura:id="navService" />
<aura:attribute name="pageReference" type="Object"/>
lightning:navigation is supported only in Lightning Experience, Salesforce Mobile App .. not the standard alone apps (.app)
https://rajvakati.com/2018/11/13/navigate-to-component-using-lightningnavigation/