Skip to main content
2 of 2
added 1 character in body
Mohith Shrivastava
  • 92k
  • 19
  • 161
  • 214

The updated code is as below

<aura:component >

<aura:attribute name="Result" type="Integer" />
<ui:inputNumber aura:id="inputOne" label="Enter first number" />
 <ui:inputNumber aura:id="inputTwo" label="Enter second number" />
 <ui:inputNumber aura:id="inputThree" label="Enter third number" />
 <ui:button aura:id="calculateButton" label="Calculate" press="{!c.calculate}"    />

<div>
Output: <ui:outputNumber aura:id="totalValue" value="{!v.Result}" />
</div>

"c" is reserved for actions and v is reserved for attributes or values

</aura:component>

Mohith Shrivastava
  • 92k
  • 19
  • 161
  • 214