Or you can do:
function first() {
}
function second() {
}
$scope.runBoth = function () {
first();
second();
}
The good thing with this approach is that you can listen on first () return and based on this run / skip the execution of second (), etc.
, first() second() javascript, (, first() second() - ).