I am working on a Flow Screen and trying to assign a value to a lightning component attribute from a variable in the flow. The flow screen allows me to select the lightning component but it doesn't display the attribute that I want to use. The attribute is of the type Account[]. All of this is based on this article. How can I make this attribute accessible in the flow?
Component:
<aura:component implements="lightning:availableForFlowScreens"
access="global" >
<aura:attribute name="accounts" type="Account[]" access="global"/>
</aura:component>
Designer:
<design:component>
<design:attribute name='accounts' label='Accounts' />
</design:component>