A Scope is a Binding part in AngularJS between an HTML design (View) and the JavaScript(controller).
A Scope is available for both view and also controller.
The Scope is an object with all properties and methods.
When a controller is made in AngularJS $scope has to provide as an argument.
Example:
< div ng-app="appname" ng-controller="controllername">When a property is added to the $scope an object in an controller ,or a view HTML gets access for all these attributes.
In an view $scope is not used but we just prefer only {{myname}}.
If user has designed an AngularJS an application mainly it consists as:
i. A View , which is a HTML code.
ii. Model it is a data available for a view.
iii. Controller its an Javascript function that basically changes/controller.
In a working scope it is important to consider a present scope.
In an any example its mandatory that scope but also a applications there can be sections in DOM object.
Example:
< div ng-app="appname" ng-controller="controllername">All AngularJS having $rootScope which can be created on an HTML element that contains an ng-app directive.