Join the Stack Overflow Community
Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
$scope.some_random_variable = "random_value";
$scope.some_random_function = function(random_param){
    console.log("randomness");
} 

I want to know the difference in the context of digest cycle. As far as I can understand scope_function changes the visibility of Angular Function.

share|improve this question
    
Please tell me if I am not clear? – perfectus yesterday
    
"As far as I can understand scope_function changes the visibility of Angular Function." what do you mean by that? btw there is no scope_function here – Tamas Hegedus yesterday

basically, in your html, or whatever that interacts with your $scope, a $scope.something that is declared as a function will be launched when it is called, just like how a javascript function works, same as a variable, only difference between a $scope and a var would be that $scope is a global call.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.