function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chintha santoshChintha santosh 

lightning:navigation

Navigating component from another component..
On clicking the button i didn't get the target component..
component:

<aura:component implements="lightning:isUrlAddressable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome" access="global">
 <aura:attribute name="pageReference" type="Object"/>
    
   <lightning:navigation aura:id="navService"/>
    
    <lightning:button name="test" label="Navigate to Account list view" onclick="{!c.navigate}" />
    
 

</aura:component>


JS Controller:
({
    Navigate: function(component, event, helper) {
        
     var pageReference = component.find("navService");
        var pageReferenceNav = {
            "type" : "standard__component",
            "attributes" : {
                "componentName" : "c__LC_BookMyHome_3008"
            },
            "state" :{
                "myAttr" : "atrvalue"
            }
        };
        pageReference.navigate(pageReferenceNav);
    },
})
AnudeepAnudeep (Salesforce Developers) 
Can you try using e.force:navigateToComponent or look at the example code in this post
 
navigateToMyComponent : function(component, event, helper) {
    var evt = $A.get("e.force:navigateToComponent");
    evt.setParams({
        componentDef : "c:myComponent",
        componentAttributes: {
            contactName : component.get("v.contact.Name")
        }
    });
    evt.fire();
}

If it helps, Please mark this answer as Best. Thank You!