Suppose I have a angularJS (1.x) controller like

var app= angular.module("myModule");
app.controller("myCtrl", myCtrl);
myCtrl.$inject=['$scope', myService];
function myCtrl($scope, myService) {

    $scope.isOk = true;

   $scope.function1 = function() {
       ....
    }

    $scope.function2 = function() {
      ....
     }

}

********
Question: will ALL the methods inside this controller be executed when it 
is loaded ?  Or will them just be executed when they are invoked ?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to