I am trying to create an array of String values in an lightning component using a List attribute:
<aura:attribute name="keywords" type="List" default="['','','']" />
With multiple inputs:
<aura:iteration items="{!v.keywords}" var="keyword" indexVar="i">
<lightning:input label="Keyword" value="{!keyword}" />
</aura:iteration>
But in the controller after entering values, and invoking my handler, I get empty values?
var keywords = component.get('v.keywords')
Am I missing something here? This appears to work in my other controllers (and I see other questions using this syntax), and seems like the appropriate setup ?