title: How to pass different parameters to ng-submit from different submit buttons?
body: <p>Using AngularJs, I have a web page where I have three buttons to call a method. Each button currently has its own ng-click attribute, and calls the same method but passes a different parameter:</p>
  
  <pre><code>&lt;button type="submit" ng-click="main.save(131)" title="Set Ready to Ship" class="btn btn-primary btn-header" ng-disabled="!main.allowedToShip || main.isLoading" ng-show="main.allowedToShip"&gt;
      &lt;span class="icon-truck icon"&gt;&lt;/span&gt;
  &lt;/button&gt;
  
  &lt;button type="submit" ng-click="main.save(132)" title="Set in Use" class="btn btn-primary btn-header" ng-disabled="!main.allowedInUse || main.isLoading" ng-show="main.allowedInUse"&gt;
      &lt;span class="icon-meter icon"&gt;&lt;/span&gt;
  &lt;/button&gt;
  
  &lt;button type="submit" ng-click="main.save(130)" title="Save" class="btn btn-primary btn-header" ng-disabled="!main.allowedModify || main.isLoading"&gt;
      &lt;span class="icon-floppy-disk icon"&gt;&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>I have made a form on that page, and I want to have the buttons to use the ng-submit of the form instead of their current ng-click method. However, I don't know how I can pass the correct parameters to the ng-submit. I feel like I'm missing an obvious solution. Can someone help me? Thank you.</p>