you can determine which element the area is attached to, select the element and capture it using angular.element . Assuming that this area is attached to the <div id="stuff"></div> element, pay attention to the following example, in particular, calling .scope()
<div ng-app="app" ng-controller="ctrl" id="stuff"></div> <button onclick="getStuff()">get stuff</button>
var app = angular.module('app', []).controller('ctrl', function($scope) { $scope.inside = { 'name': 'guy', 'idk': 'blah' } }); var getStuff = function() { var outside = angular.element(document.getElementById('stuff')).scope(); console.log(outside.inside)
JSFiddle example - demo
source share