AngularJS Scopes

AngularJS Scopes AngularJS scope is a special kind of JavaScript object which provide the role of joining controller with the views. It contains the model data. In controllers, model data are accessed via $scope object. Example <script>       var mainApp = angular.module("mainApp", []);         mainApp.controller("shapeController", function($scope) {          $scope.message = "In shape controller";          […]