title: How to add fields in bootstrap model dynamically in angular
body: <p>I am new to <code>webDevelopment</code>. Now, Here I have a list of buttons , but the <code>data-target</code> is a same model for every button click. So, My model is like -</p>
  
  <pre><code>&lt;div class="modal fade" id="myModalHorizontal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;!-- Modal Header --&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal"&gt;
                     &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                     &lt;span class="sr-only"&gt;Close&lt;/span&gt;
              &lt;/button&gt;
                  &lt;h4 class="modal-title" id="myModalLabel"&gt;
                     Missing {{suggestivalue}}
                  &lt;/h4&gt;
              &lt;/div&gt;
  
              &lt;!-- Modal Body --&gt;
              &lt;div class="modal-body"&gt;
  
                  &lt;form class="form-horizontal" role="form"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="col-sm-2 control-label" for="inputEmail3"&gt;Email&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="email" class="form-control" id="inputEmail3" placeholder="Email" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="col-sm-2 control-label" for="inputPassword3"&gt;Password&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="password" class="form-control" id="inputPassword3" placeholder="Password" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="col-sm-offset-2 col-sm-10"&gt;
                              &lt;div class="checkbox"&gt;
                                  &lt;label&gt;
                          &lt;input type="checkbox"/&gt; Remember me
                      &lt;/label&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="col-sm-offset-2 col-sm-10"&gt;
                              &lt;button type="submit" class="btn btn-default"&gt;Sign in&lt;/button&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
              &lt;!-- Modal Footer --&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;
                          Close
              &lt;/button&gt;
                  &lt;button type="button" class="btn btn-primary"&gt;
                  Save changes
              &lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In this buttons are like - </p>
  
  <pre><code> &lt;ul class="col-md-12 list-group suggestion"&gt;
                  &lt;li class="list-group-item suggestion-list-group-item nopadding" ng-repeat="suggestion in suggestions | orderBy:'name'" tooltip-trigger
                      tooltip-placement="bottom" tooltip={{suggestion.name}} tooltip-popup-delay=200 tooltip-append-to-body="true"&gt;
                      &lt;button ng-click="grabIndex(suggestion)" class="btn btn-default btn-block suggestion-button" role="button" data-toggle="modal"
                          data-target="#myModalHorizontal"&gt;&lt;span class="suggestion-text"&gt;{{suggestion.name}}&lt;/span&gt;
                      &lt;/button&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
  </code></pre>
  
  <p>Every Button is going to open a same model,But It should be respective to that of click value. E.g. If the button is like <code>FullName</code> , I should be able to add the two Input box <code>fistName and lastName</code> . Its like on click of the Button, How can I add the fields respective of that button.? Can any one help me with this ?</p>