I have controller codes from different JavaScript files.
NLGoalsCtrl.js
angular.module('mysite').controller('NLGoalsCtrl', function ($scope) {
$scope.goals_selected = [];
});
NLSessionsCtrl.js
angular.module('mysite').controller('NLSessionsCtrl', function ($scope) {
//how can I access $scope.goals_selected here?
});
I am looking for a way to access the $scope.goals_selected from NLSessionsCtrl. Any help would be appreciated. Thank you!