I was trying to navigate a page from aura components but got error like this

524 Views Asked by At

enter image description here

code to get pagereference from parent component:

var pageReference = component.get("v.pageReference");
        console.log('getpropertyDetails pageReference'+JSON.stringify(pageReference));
1

There are 1 best solutions below

0
On

This is probably because you are trying to access an attribute from an object which is null.

In the getSelectedProperty method object associated with the state attribute is null.