ng-change = "ControllerName.functionName()"
here I want to add one more function to that. How can I do that ?
Thanks in advance.
ng-change = "ControllerName.functionName()"
here I want to add one more function to that. How can I do that ?
Thanks in advance.
This should do the trick:
ng-change = "ControllerName.functionName(); ControllerName.anotherFunction();"
Why not rather group the functions in the controller inside another function?
function onChangeGroup(){
doStuff();
doMoreStuff();
}
<input ng-change="ControllerName.onChangeGroup()"/>
Regards
This is working properly but one controller in both function.
ng-change = "function1();function2();"
for angular version 1.* :
ng-change = "function1();function2();"
for angular version 2.* or more:
(change)= "function1();function2();"
You just need to add another function in the same double quotes.
ng-change = "ControllerName.functionFirst(); ControllerName.functionSecond();"
You can use ng-change
for multi expression by adding semicolon ;
after each expression