I have declared sobject in lightning component as
<aura:attribute name="newStudent" type="Student__c"
default="{'sobjectType':'Student__c',
'Name':'',
'Marks':0,
'OptionValues__c':' ',
}"
/>
<div class="slds-form-element" id="optionValue">
<label class="slds-form-element__label ques" for="levels" >Option Values</label>
<ui:inputTextArea class="dynamic" aura:id="Option values" value="{!v.newStudent.OptionValues__c}" change="{!c.changeOptionValue}"/>
</div>
<br/>
I am accessing this field in controller as:
changeOptionValue : function(component,helper,event)
{
var newStudent=component.get("v.newStudent");
var optionValues=newStudent.OptionValues__c;
console.log('optionValues'+optionValues);
}
Here on change of option value I want to do some operations on new value of optionValue field of newStudent object.But I am getting the old value of option value.This was working in winter release but it is not working in summer 16. Is their any another way to do this same..