我正在尝试在我的 Angular 2 应用程序中使用ng2-datepicker 。我按照上面页面中的说明进行操作,但日期选择器没有出现。控制台记录以下错误。
url_resolver.js:248 Uncaught TypeError: uri.match is not a function
我的app.module.ts
import { DatePicker } from 'ng2-datepicker/ng2-datepicker';
@NgModule({
declarations: [
AppComponent,
DatePicker
],
app.component.html
<datepicker [(ngModel)]="date" [expanded]="true"></datepicker>
角度版本 2.0.0
包.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"
},
有什么建议么 ?
谢谢你