I am attempting to use the new lightning:progressIndicator
component to display a process. If I hardcode the steps like below, things render fine:
<lightning:progressIndicator type="path">
<lightning:progressStep label="First" value="0"/>
<lightning:progressStep label="Second" value="1"/>
<lightning:progressStep label="Third" value="2"/>
</lightning:progressIndicator>
However, because I am making a more complex app my steps are going to be dynamic. Trying to use a simple aura:iteration
causes the path to render as empty.
<lightning:progressIndicator type="path">
<aura:iteration items="First,Second,Third" var="label" indexVar="labelNum">
<lightning:progressStep label="{!label}" value="{!labelNum}"/>
</aura:iteration>
</lightning:progressIndicator>
Am I missing something here? I can't imagine that using an iteration is simply not supported for this component.