title: angular datepicker is not working
body: <p><a href="https://www.npmjs.com/package/angular4-datepicker" rel="nofollow noreferrer">angular4-datepicker</a></p>
  
  <p>it's give error like :</p>
  
  <blockquote>
    <p>error TS2307: Cannot find module 'mydatepicker'</p>
  </blockquote>
  
  <p>also give compile time error at here :</p>
  
  <blockquote>
    <p>import { MyDatePickerModule } from 'mydatepicker';</p>
  </blockquote>
  
  <p>report.module.ts :</p>
  
  <pre><code>import { FormsModule } from '@angular/forms';
  import { MyDatePickerModule } from 'mydatepicker';
  @NgModule({
    imports: [  
      MyDatePickerModule,
      FormsModule
    ] 
  })
  </code></pre>
  
  <p>report.component.ts :</p>
  
  <pre><code>import {IMyDpOptions} from 'mydatepicker';
  @Component({
    selector: 'app-report',
    templateUrl: './report.component.html',
    styleUrls: ['./report.component.css']
  })
  export class ReportComponent implements OnInit { 
  
    public myDatePickerOptions: IMyDpOptions = {
      // other options...
      dateFormat: 'dd.mm.yyyy',
  };
  }
  </code></pre>
  
  <p>report.component.html :</p>
  
  <pre><code> &lt;my-date-picker name="mydate" [options]="myDatePickerOptions" [(ngModel)]="filterData.firstDate" required&gt;&lt;/my-date-picker&gt;
  </code></pre>
  
  <p>I use :</p>
  
  <blockquote>
    <p>Angular: 5.2.1
    Angular CLI: 1.6.5</p>
  </blockquote>