Angularjs 角度:表单未提交数据未在firebug中显示

Angularjs 角度:表单未提交数据未在firebug中显示,angularjs,Angularjs,我有一个表格,里面有一些文本框。文本框在运行时生成。喜欢的用户可以添加或删除文本框 这是表格 <form name="formprofile3" method="post" id="formprofile3" role="form" ng-submit="formprofile3()"> <div class="container"> <div class="row"> <div ng-a

我有一个表格,里面有一些文本框。文本框在运行时生成。喜欢的用户可以添加或删除文本框

这是表格

<form name="formprofile3" method="post" id="formprofile3" role="form" ng-submit="formprofile3()">
    <div class="container">
            <div class="row">

                <div ng-app="angularjs-starter" ng-controller="MainCtrl">

                   <fieldset  data-ng-repeat="choice in choices">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-10">
                      <textarea name="exp_details" ng-model="choice.name" class="form-control textbox1" id="exp_details" placeholder="Experience" required="required" rows="3"></textarea></div>
                      <div class="col-xs-2">
<button class="remove" ng-show="$last" ng-click="removeChoice()">-</button>
</div>       
</fieldset>
<button class="addfields" ng-click="addNewChoice()">+</button>

                   <div id="choicesDisplay">
                      {{ choices }}
                   </div>
                </div>

            </div>

        </div>
<center><button type="submit" class="btn btn-home" name="btn-save1" id="btn-save1" required="required">Save & Finish <i class="icon ion-arrow-right-a"></i></button></center>
</form>
formApp.controller('formProfile3', function($scope,$http){

      $scope.formData = {};

        $scope.formprofile3 = function() {


          var allData={'formData': $scope.formData, 'uid': uid}
        $http({
              method  : 'POST',
              url     :  'add_profile.php',
              data : allData,
              headers : { 'Content-Type': 'application/x-www-form-urlencoded' }  
          })
              .success(function(data) {
                   if (!data.success) {

                      $scope.message = data.errors.message;

                  }else{
                      alert('Your details has been updated.');
                             }

              });

      };

    })
问题是当我提交表格时。这是不可能的。没有数据进入post

有人告诉我我做错了什么

编辑:我可以在{{choices}中看到数据

选择不会以formdata的形式出现。

这是firebug中的数据

{"formData":{},"uid":"75"}:""

ng-app
ng-controller
指令移动到
body
/
html
标记,以便
form
ng-submit
指令应得到编译

<body ng-app="angularjs-starter" ng-controller="MainCtrl">
    <form name="formprofile3" method="post" id="formprofile3" role="form" ng-submit="formprofile3()">
        ....
    </form>
</body>

....

另外,我在页面上看不到任何
formData
(作为ng模型)双向绑定。我想你应该寻找
选项
。另外,为表单对象的每个
textarea
字段添加
name
属性以进行验证。

它们位于由
ng controller=“MainCtrl”
在表单内部创建的内部范围内。无论如何,我可以在表单提交时使用它。为什么添加
ng controller=“MainCtrl”
此处:
?正如@PankajParkar在他的回答中所写的,这就是问题所在,但问题中没有足够的上下文来回答这个问题。我如何才能将name属性添加到textarea。如果是,那怎么办?我正在学习计算机结帐,你们会明白表单是如何工作的