I'm opening a "popup" using
$scope.dialog = ngDialog.open({
template: 'addSurveyQuestion',
controller: 'EventSurveysCtrl',
scope: $scope
});
Within the template I call a function, which creates an AJAX request but upon me pushing that data to $scope using $scope.eventSurveyQuestions.push({data here});
it doesn't appear in the main $scope. Its as if there are 2 $scope variables, one for main page and one for ngDialog.
How can I add data to the main $scope from within a process that was initiated from within an ngDialog popup?