$scope is the most commonly used
built-in service in AngularJS, $scope
acts as the model object, it glues the controller with the view, $scope holds the objects/properties. $scope enables 2-way binding between
the view and the model, properties of $scope can be set in the controller and
bound to the object, any changes made in the view will get automatically
reflected in the $scope.
The below example demonstrated the use of $scope object to bind between the model and the view.
The below example demonstrated the use of $scope object to bind between the model and the view.