SF Nav Mixin

PHOTO EMBED

Sat Jun 12 2021 13:24:05 GMT+0000 (Coordinated Universal Time)

Saved by @redflashcode #javascript

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
            }
        });
    }
content_copyCOPY