import { LightningElement, wire } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; navigateToContact() { this[NavigationMixin.Navigate]({ type: 'standard__recordPage', attributes: { recordId: this.contact.data.Id, objectApiName: 'Contact', actionName: 'view' //to edit change value to edit } }); }