AngularJS Serialize Form Inputs without Unique ID
<p>There is an array of questions that are displayed on the form. I want to get all the answers into an array that I can push to Firebase. </p>

<p>This question (<a href="https://stackoverflow.com/questions/19757731/angularjs-equivalent-to-serialize">Angularjs equivalent to serialize</a>) is pretty similar. However, I do not have ids per question and that answer does not provide the controller code. </p>

<p>Here is the HTML:</p>

<pre><code> &lt;form ng-submit="addAnswers()"&gt;
      &lt;dd ng-repeat="questions in itemform.questions"&gt;
        {{questions}}
        &lt;input type="text" ng-model = "answers"&gt;
      &lt;/dd&gt;
      &lt;input type="submit"&gt;
    &lt;/form&gt;
</code></pre>

<p>Here is the controller:</p>

<pre><code>phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$firebaseObject',function($scope, $firebaseObject) {

 $scope.addAnswers = function() {     
 var ans = new Firebase("https://APP.firebaseio.com/answers");
 var x = $scope.answers;
 console.log($element.serialize()); //says "element is not defined"
 console.log(x.serializeArray()); "says x is undefined

};

}]);
</code></pre>