<div style="display:inline-block; min-height:290px;"> <datepicker [(ngModel)]="date" showWeeks="true"></datepicker> </div>
/* src/app/home/home.ts */ import {AlertComponent, DATEPICKER_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap'; ... @Component({ directives: [ ... AlertComponent, DATEPICKER_DIRECTIVES ] }) export class Home { date: Date = new Date(); }
But I am getting error zone.js:101 GET http://localhost:4200/ng2-bootstrap/ng2-bootstrap 404 (Not Found)