title: Open a modal on page load Angular4
body: <p>I want to be able to see a modal open as soon as the page loads. I see a gray modal-backdrop, but the modal itself is missing. </p>
  
  <p>Here is my html: </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="content-container"&gt;
    &lt;div class="content"&gt;
      &lt;div class="row"&gt;
        &lt;div class="column" style="background-color: #EFF3F6;"&gt; &lt;h1 class = "pageTitle"&gt;Welcome!&lt;/h1&gt;
  
          &lt;div&gt;
            &lt;button [routerLink]="['/myPendingRequests']"&gt;Enter ePACS&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="skipContent" tabindex=”-1″&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;button id="openModal" #openModal [hidden]="true" 
   data-toggle="modal" data-target="#openModal"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>Modal in the same component: </p>
  
  <pre class="lang-html prettyprint-override"><code>  &lt;!-- Remove Modal --&gt;
    &lt;div class="openModal"&gt;
      &lt;div class="modal left fade" id="openModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static"&gt;
          &lt;div class="modal-dialog" role="document"&gt;
            &lt;div class="modal-content" id="whiteColor"&gt;
  
                &lt;div class="modal-header"&gt;
                  &lt;p&gt; This is my modal&lt;/p&gt;
                &lt;/div&gt;
  
                &lt;div class="modal-body"&gt;
                &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Thanks!!</p>