title: how to show data in modal pop-up by selected index (AngularJS)
body: <p>I'm new in AngularJS. How to show data in pop-up by selected index.?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;div class="modal fade" id="myModal" role="dialog"&gt;
  &lt;div class="modal-dialog" &gt;
      &lt;div class="modal-content"&gt;
      &lt;div class="modal-header"&gt;
        &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
        &lt;h4 class="modal-title"&gt;Modal Header&lt;/h4&gt;
      &lt;/div&gt;
      &lt;div class="modal-body" ng-repeat="product in filtered | limitTo : 1"&gt;
        &lt;p&gt;{{product.prod_name}} &lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
        &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My Button: </p>
  
  <pre><code>&lt;td&gt;&lt;button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal"&gt;Detail&lt;/button&gt; &lt;/td&gt;
  </code></pre>