title: ng2-bootstrap datepicker error
body: <p>I am implementing ng2-bootstrap datePicker in my angular 2 app but faced some type of modules error and I do not understand what is the problem behind.Please help me.</p>
  
  <p><strong>module.ts</strong></p>
  
  <pre><code>import { DatepickerModule } from 'ng2-bootstrap/datepicker';
  @NgModule({
   imports: [
   ...........  
   DatepickerModule
   ...........
   ],
   declarations: [
   .....
   .....
  ]})
  
  export class Modules {
   }
  </code></pre>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;datepicker&gt;&lt;/datepicker&gt;
  </code></pre>
  
  <p><strong>error</strong></p>
  
  <pre><code> 'datepicker' is not a known element:
      1. If 'datepicker' is an Angular component, then verify that it is part of this module.
      2. If 'datepicker' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("&lt;div class="form-group"&gt;&lt;div&gt;
                            [ERROR -&gt;]&lt;datepicker&gt;&lt;/datepicker&gt;
                            &lt;!--&lt;datepicker [expanded]="true" class="danger"-"): AddCustomer@49:26
      Can't bind to 'expanded' since it isn't a known property of 'datepicker'. ("                              &lt;div&gt;
                                                      &lt;datepicker [ERROR -&gt;][expanded]="true" class="danger"
                                                                  form"): AddCustomer@212:64
      'datepicker' is not a known element:
  </code></pre>