Currently, the component is in a random access level. Now we are putting it as access="global", and then as <aura:attribute…>. As of now, its access is set to public, and now we are putting it as global, as shown in the following code snippet:
<aura:component access="global" implements="flexipage:availableForAllPageTypes"> <!-- for the label of the Name --> <aura:attribute access="global" name="enterName" type="String" default="Enter Name"/> <ui:outputText value="{!v.enterName}" /> <ui:inputText /> <ui:button label="Submit" /> </aura:component>