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
kumartskumarts 

I am not able use lightning component from managed package (Ex: MyTasksComponent.cmp from MyTasksComponentLabs package) in my custom component

I am trynig to use MyTasksComponent.cmp from MyTasksComponentLabs package,
 
<aura:component controller="MyTaskCustomCtrl" implements="force:appHostable,flexipage:availableForAllPageTypes">
....
<aura:if isTrue="{!v.displayDetail}">
   <mytaskslabs:MyTasksComponent/>
<aura:set attribute="else">
            <!-- not content to shwo-->
        </aura:set>
        </aura:if>  
....
</aura:component>


When save, i get he following error
ERROR: No COMPONENT named MyTasksComponent found: Source
SonamSonam (Salesforce Developers) 
I understand mytaskslabs is the namespace being used by the managed package..right? 
kumartskumarts
Yes, it is.
Erhan FIRATErhan FIRAT
You should set attribute
access="global"

to the component you want to access.