title: Angular 7 Hide bootstrap modal in typscript
body: <p>I want to call (click)="basicModal.hide()" methode of MDBootstrap Modal inside one of my fuctions in my typescript component. I don't know how to access this method from component. </p>
  
  <pre><code>&lt;button type="button" mdbBtn color="primary" class="relative waves-light" (click)="basicModal.show()" mdbWavesEffect&gt;Launch demo modal&lt;/button&gt;
  
  &lt;div mdbModal #basicModal="mdbModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myBasicModalLabel" aria-hidden="true"&gt;
    &lt;div class="modal-dialog" role="document"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close pull-right" aria-label="Close" (click)="basicModal.hide()"&gt;
            &lt;span aria-hidden="true"&gt;×&lt;/span&gt;
          &lt;/button&gt;
          &lt;h4 class="modal-title w-100" id="myModalLabel"&gt;Modal title&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          ...
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" mdbBtn color="secondary" class="waves-light" aria-label="Close" (click)="basicModal.hide()" mdbWavesEffect&gt;Close&lt;/button&gt;
          &lt;button type="button" mdbBtn color="primary" class="relative waves-light" mdbWavesEffect&gt;Save changes&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>