title: How to open bootstrap modalbox by clicking on the card image in angularjs project
body: <p>I am writing code for my angularjs project where in one part of UI has cards. So I want to open a modal box by clicking on the card image.
  Currently I have created a button below the image and clicking on the button will open the modalbox.
  This is working fine. But instead of clicking on the button, I want to click on the card image and it should open the modal box.I am attaching the current code below. Any help regarding this would be highly appreciable. Thank You</p>
  
  <pre><code>&lt;div class="col-md-4 clearfix d-none d-md-block"&gt;
              &lt;div class="card mb-2"&gt;
                &lt;div class="avatar-wrapper"&gt;
                  &lt;img class="profile-pic" src="/assets/images/abc.jpg" /&gt;
                  &lt;div class="upload-button"&gt;
                   &lt;/div&gt;               
                &lt;/div&gt;
  
                &lt;div class="card-body"&gt;            
  
           &lt;h4&gt; &lt;button type="button" class="card-title text-center font-weight-bold" data-toggle="modal" data-target="#basicExampleModal3"&gt;
              abc receipe &lt;/button&gt;  &lt;/h4&gt;
                  &lt;h3 class="description"&gt;This is short description in the card body.hio dvdjvd sscg sdgscsc sgssd sdjg c edsc sdcfsc dfkopseuccs sc&lt;/h3 &gt;     
                   &lt;div class= "modal fade" id="basicExampleModal3" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel3"
              aria-hidden="true"&gt;
              &lt;div class="modal-dialog modal-lg" role="document"&gt;
                &lt;div class="modal-content"&gt;
                  &lt;div class="modal-header"&gt;
                 &lt;h5 class="modal-title" id="exampleModalLabel3"&gt;Receipe-abc by dfgr&lt;/h5&gt;
                    &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
                      &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                    &lt;/button&gt;
                  &lt;/div&gt;
  
                  &lt;div class="modal-body "&gt;
                    &lt;img class="profile-pic" src="/assets/images/abc.jpg" /&gt;
                   &lt;p&gt; Modal Box Description.                 
                    sdc
                    dfvdv
                    sscg sdgscsc dfvfd
                   &lt;/p&gt;
                  &lt;/div&gt;                
                  &lt;div class="modal-footer"&gt;
                    &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;                  
                  &lt;/div&gt;             
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
  
  &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
  </code></pre>