How can I access a controller's data in another controller in Angular js? : <pre><code>var app = angular.module("myApp",[]);

app.controller("CTRL1", function($scope){
    $scope.data = [{'name':'Prateek'},{'name':'Agarwal'},{'name': 'Ketan'}];
})

app.controller("CTRL2", function($scope){
    $scope.data = [{'name':'Hari'}];
})
</code></pre>

<p>I have two controllers - CTRL1 and CTRL2. How can I access data from one controller in another?</p>
