Pass data from an Angular modal's controller back to the main controller
问题 Here is the thing. I am not able to pass data from angular modal back to the controller where i need it. the codes given below. Controller side 'use strict' var DataMod = angular.module('Data', ["angularGrid", 'ui.bootstrap.contextMenu', 'ui.bootstrap']); DataMod.controller('DataController', ['$scope', '$compile', '$uibModal', '$log','$rootScope', '$http', function ($scope, $compile, $uibModal,$log, $rootScope, $http, ngUtilityService) { //user first clicks on Add button. A modal opens up.