title: Construct angularjs model from laravel 5
body: <p>I have a form and the value of every field generated from Laravel5 blade. Here is how I construct the form </p>
  
  <pre><code>{!! Form::open(['url' =&gt; 'pay', 'name' =&gt; 'checkoutForm']) !!}
  
      {!! Form::label('cs_cvcode', 'CV CODE') !!}
      {!! Form::password('cs_cvcode', ['class' =&gt; 'form-control', 'ng-minlength' =&gt; 3, 'ng-maxlength' =&gt; 3, 'required', 'ng-model' =&gt; 'checkout.cs_cvcode']) !!}
      {!! Form::hidden('od_notes', 'TESTING SANDBOX', ['ng-model' =&gt; 'checkout.od_notes', 'ng-value' =&gt; 'checkout.od_notes', 'ng-update-hidden']) !!}
      {!! Form::submit('Pay', ['class' =&gt; 'btn btn-success btn-lg btn-block', 'ng-click' =&gt; 'processCheckout($event)', 'ng-disabled' =&gt; '!checkoutForm.$valid']) !!}
  {!! Form::close() !!}
  </code></pre>
  
  <p>from here you can see I'm trying to bind the value to angular's model. But this does not work for the hidden input. The form will not send the value of hidden input if I use <code>$http.post</code>. </p>
  
  <p>What do you suggest for the hidden input value attach to the model of AngularJS. Here is the workaround of my <code>js</code> code inside the controller</p>
  
  <pre><code>$scope.checkout = {};
  console.log($scope);
  $scope.processCheckout = function(ev) {
      ev.preventDefault();
      var request = $http({
          method: "post",
          url: "/pay",
          transformRequest: transformRequestAsFormPost,
          //headers : { 'Content-Type': 'application/x-www-form-urlencoded' },
          data: param($scope.checkout)
      });
      request.success(function() {
          console.log($scope);
      })
  }
  </code></pre>
  
  <p>why it does not bind to <code>$scope.checkout</code></p>