看起来像范围问题。我让它像这样工作:
var ModalInstanceCtrl = function ($scope, $modalInstance) { $scope.input = {}; $scope.ok = function () { alert($scope.input.abc); }; $scope.cancel = function () { $modalInstance.dismiss('cancel'); };};HTML:
<textarea ng-model="input.abc"></textarea>



