When navigating between lwc's is it possible to pass values from the html to the state when the onclick event is used please. I'd like the c__propertyID to be retrieved from there so I'd like label to be something from my html. I know how to get them from the URL in the lwc but can't work out how to pass it in.

viewProperty() {
            type: 'standard__component',
            attributes: { componentName: 'c__ViewPropertyAura' },
             state: { c__propertyID: label}

1 Answer 1


I assume this is what you need


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .