After Summer 18, force:navigateToComponent tag will be no longer in use means it will be deprecated. From now With the lightning:isUrlAddressable interface, you now control which Lightning components can be opened programmatically. You can also now easily capture URL parameters using the v.pageReference attribute and use the parameter values in your component. With the lightning:navigation component, define a pageReference object for navigating to a custom component that implements lightning:isUrlAddressable and set any attributes the component allows.Using lightning:navigation with pageReference provides the following benefits over the now deprecated force:navigateToComponent for standard navigation Lightning apps: –
Control and manage which URL parameters are used in your component.
Future-proofs your apps from changes in URL format.
Generates a user-friendly URL for these components.
A page reference is associated with a particular type, which provides a set of attributes that are applicable for all pages of that type. The following types are supported.
Knowledge Article Page
Lightning Component (must implement lightning:isUrlAddressable)
Navigation Item Page
Record Relationship Page
My name is Amit Singh. I am a Certified Salesforce Platform Developer, Admin, and Service Cloud Consultant working as Salesforce Developer @PureSoftware Ltd. I love to solve the queries in Salesforce Success Community and Developer forum. I am in love with Salesforce because of its continuous improvement.