What is $Scope.Answer?

Asked

Viewed 161 times

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

1 answer

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

You are not signed in. Login or sign up in order to post.