

I wish to call my method into an aura:iteration in this code :
<div id="list" class="row">
<div class="container">
<!--<div class="inner">-->
<aura:iteration items="{!v.products}" var="prod">
<div class="info">
<p>Nom: <ui:outputText value="{!prod.Name}"/></p>
<p>Liké par: <ui:outputText value="{!prod.wishedBy__c}"/></p>
<p>Prix: <ui:outputCurrency value="{!prod.Prix__c}"/></p><br/>
</div>
<div id="side"></div>
</aura:iteration>
<!--</div>-->
</div>
</div>
this
<aura:handler name="init" value="{!this}" action="{!c.doAction}"/>
open an alert when i try to save with "Failed to save undefined: markup://c:pageGraph:20,91: Invalid attribute "name": Source". I'm able to save it when i place it outside this div (before or after).
For the seconde problem about the returned value. Earlier in my code i have
<aura:handler name="init" action="{!c.doInit}" value="{!this}"/>
which return some values from my table. In action {!c.doAction}. I need those values but i get nothing. I place some console.log in those action. The console.log from doAction (the second one called) is displayed before the one in doInit (called first)