3

Is there a possibility to pass .app custom attributes for component in it? I've tried to use inheritance, but components cannot extend apps.

Do you know any solutions?

7

How about using simple attributes .Here is a sample Hello world that works

<aura:application >
    <aura:attribute type="String" name="Test" default="world"/>
<c:Sample title="{!v.Test}"/>

The component code

<aura:component >
  <aura:attribute type="String" name="title" />
Hello {!v.title}
</aura:component>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.