title: How to set default Date in bootstrap datepicker in Angular 4?
body: <p>I am using Bootstrap Datepicker in Angular 4, I want to set current date as default in Text Box, here is my code:</p>
  
  <pre class="lang-js prettyprint-override"><code>// COMPONENT CODE
  $('#submission_date').datepicker({
    autoclose: false,
    format: 'yyyy-mm-dd'
  })
  </code></pre>
  
  <p>HTML code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="text" formControlName="submission_date" ngModel="{{getAssignment.submission_date | date: 'yyyy-MM-dd'}}" id="submission_date"&gt;
  </code></pre>
  
  <p><strong>NOTE: I am using Reactive Form.</strong></p>