title: Why hidden field values not get passed to controller Ionic v1
body: <p>Hi I have a form in <code>ioinc v1.</code></p>
  
  <pre><code>&lt;form name="add-form"&gt;
          &lt;input type="hidden" ng-model="data.usersId" ng-value="{{userId}}"/&gt;
          &lt;input type="hidden" ng-model="data.loggedInUserId" ng-value="{{LoggedInUserId}}"/&gt;
  
          &lt;div class="col col-center"&gt;
          &lt;div class="list list-inset1"&gt;              
              &lt;label class="item item-input input-field"&gt;Send Message:
  
                  &lt;textarea name="comment" id="comment-textarea" cols="6" rows="6" ng-model="data.message"&gt;
                  &lt;/textarea&gt;
                  &lt;/label&gt; 
  
              &lt;button ui-sref="app.profile" style="background-color:red;" class="button button-full button-assertive ink" ng-click="sendMessage()"&gt;Send&lt;/button&gt;
  
          &lt;/div&gt;
          &lt;/div&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>But on click I am not able to get the values of above hidden field in controller its says </p>
  
  <blockquote>
    <p>undefined</p>
  </blockquote>
  
  <p>.</p>
  
  <pre><code>//Controller is.
  
   $scope.sendMessage = function() {      
    $scope.data.userId = $scope.data.userId;
    $scope.data.loggedInUserId = $scope.data.loggedInUserId;
  
    $ionicLoading.show();    
     messagingService.storeMessages($scope.data.message,$scope.data.userId,$scope.data.loggedInUserId)
  
  });
  </code></pre>
  
  <p>Can anyone assist me what is wrong with this?</p>
  
  <p>thanks in advance</p>