1
$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.

2
  • Please tell me if I am not clear? Commented Feb 6, 2017 at 12:22
  • "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 Commented Feb 6, 2017 at 12:24

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.