6
I’m new to Angularjs, I would like to understand what $Cope.Answer is really for, I didn’t find anything in the official documentation or on the web, I just saw it in an example I took in a tutorial, but I didn’t understand the importance of it
6
I’m new to Angularjs, I would like to understand what $Cope.Answer is really for, I didn’t find anything in the official documentation or on the web, I just saw it in an example I took in a tutorial, but I didn’t understand the importance of it
5
$scope is an object that references the application model that provides an execution context for applications - different contexts have a $scope different.
A $scope can be shared between hierarchical structures (parent-child controls), as well as propagate events.
$scope.answer is probably just a variable created in the execution scope. It does not belong to the standard Angular implementation.
Browser other questions tagged javascript angularjs angularjs-scope
You are not signed in. Login or sign up in order to post.
Victor welcome to [en.so], click [Edit] below your question and put the code you are doubtful about. Probably
answeris a property that was created within$scope. Behold How to create a Minimum, Complete and Verifiable example and visit [help] to understand how the site works.– Jéf Bueno