I've 2 functions in the scope f1 and f2, and I call f2 in the middle of f1.I can't get why f2 is called at the end of f1.(f2 edits the view). For example, with
.....
$scope.f1 = function() {
console.log("A");
$scope.f2();
console.log("C");
}
$scope.f2 = function() {
console.log("B");
}
I get the output A C B
Why the procedural flow is not followed?In the real code, f2 manages the view.