NavigationMixin is supported and used to navigate in Lightning Experience, Salesforce Communities, and Salesforce App. Instead of a URL, navigation services use a page reference, which describes the page.
Let's see an example of Navigation Services usage in LWC:
Navigation Services in LWC:
NavigationMixinExample.html
NavigationMixinExample.js
NavigationMixinExample.js-meta.xml
Related Apex Class:
NavigationMixinExampleController.cls
Let see it in action:
Comments