我正在尝试使用非常基本的设置进行角度日历:
<div>
<mwl-calendar-day-view
[viewDate]="viewDate"
[events]="times"
[refresh]="false"
(eventClicked)="eventClicked($event)">
</mwl-calendar-day-view>
</div>
它可以正常显示,但是eventclicked无法正常工作。
eventClicked( event: CalendarEvent ): void {
console.log('Event clicked', event);
}
我的依赖
"dependencies": {
"@angular/animations": "^6.0.0",
"@angular/common": "^6.0.0",
"@angular/compiler": "^6.0.0",
"@angular/core": "^6.0.0",
"@angular/forms": "^6.0.0",
"@angular/http": "^6.0.0",
"@angular/platform-browser": "^6.0.0",
"@angular/platform-browser-dynamic": "^6.0.0",
"@angular/router": "^6.0.0",
"angular-calendar": "^0.25.2",
"angularx-flatpickr": "^6.0.0",
"core-js": "^2.5.4",
"flatpickr": "^4.5.1",
"moment": "^2.22.2",
"momentjs": "^2.0.0",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},