title: AngularJS: Ng-click passes parameter into correct Ng-show
body: <p>I have an app with several modals on the page.  What I'd like to do is have only one controller function that toggles the visibility of the modals.  So, let's say I have the following:</p>
  
  <pre><code>&lt;a href ng-click="openModal(modal1)&gt;&lt;/a&gt;
  &lt;a href ng-click="openModal(modal2)&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Then I'd like the modals to have something along the lines of:</p>
  
  <pre><code>&lt;div class="modal" ng-show="openModal(modal1)"&gt;
  &lt;div class="modal" ng-show="openModal(modal2)"&gt;
  </code></pre>
  
  <p>Hope this is clear.  I'm new to angular so kind of lost on this one.  I know I can set a bunch of functions that toggle the boolean of that specific modal type, but then my controller would get big pretty fast.  I'd like to keep it as concise and clean as possible.  Thank you in advance for your time.</p>