[SalesForce] How to call multiple functions from “change” attribute in Lightning Component

i need to call two functions at same time from change attribute in input checkbox component.

I have two function, one is generic(Say SaveFunction) and another function(do some calculation). i tried one way as binding expression such

{!c.saveFunction + c.calculateOpptyValue} 

the above code didnt work and i know another workaround calling another help in generic function , but i dont want implement any unnecessary logic in generic function.

Please let me know how can i do first way in calling the multiple functions.

Best Answer

You can call c.calculateOpptyValue from the c.saveFunction funtion Example:

c.saveFunction(){
  console.log('===');
  calculateOpptyValue(); //Call functions here
}