I am trying to use ng2-datepicker in my Angular 2 app. I followed the instructions given in the above page but the date-picker is not showing up. The console logs following error.
url_resolver.js:248 Uncaught TypeError: uri.match is not a function
My app.module.ts
import { DatePicker } from 'ng2-datepicker/ng2-datepicker';
@NgModule({
declarations: [
AppComponent,
DatePicker
],
app.component.html
<datepicker [(ngModel)]="date" [expanded]="true"></datepicker>
Angular version 2.0.0
package.json
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/router": "3.0.0",
"@material2-extra/calendar": "0.0.14-1",
"core-js": "^2.4.1",
"moment": "^2.15.1",
"ng2-datepicker": "^1.1.0",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.23"
},
Any suggestions ?
Thank You