Can't access form values in a $modalInstance
问题 I'm opening a $modalInstance in which user has to choose an option from radio inputs (values loaded dynamically) and return chosen value. I have this function to open the $modalInstance : $scope.openAddFriendGroup = function () { var addFriendGroupModal = $modal.open({ templateUrl: "addFriendGroupModal.html", controller: ModalAddFriendGroupCtrl, resolve: { myDetails: function () { return $scope.info; } } }); }; Then this is the $modalInstance controller: var ModalAddFriendGroupCtrl = function