I have 2 components, 1 parent and 1 child.
c:parentComponent
<aura:component >
<aura:attribute name="passToChild" type="String" required="false" description="" access="private"/>
<c:childComponent valueFromParent="{! v.passToChild }"
</aura:component>
c:childComponent
<aura:component >
<aura:attribute name="valueFromParent" type="String" required="false" description="" access="private"/>
Some text
</aura:component>
I want to get the value of the passToChild attribute and pass it to the child component for futher processing. However, I am getting an error.
Failed to save undefined: No ATTRIBUTE named valueFromParent found: Source
I tried creating an attribute with that name but it still shows the error. Am I doing something wrong?