+ Start a Discussion
Ayush Kumar 31Ayush Kumar 31 

ui:inputNumber accepting "+"

ui:inputNumber accepting "+", can anybody help with the code in lightning?
Raj VakatiRaj Vakati
Sample code is here
    <aura:attribute name="myNumber" type="integer" default="10"/>
	<ui:inputNumber label="Enter a number: " value="{!v.myNumber}" updateOn="keyup"/> <br/>
    <ui:outputNumber value="{!v.myNumber +v.myNumber }"/>

If you want to do addition, do it in JavaScript controller and refer in the component.