Angular-calendar: integration problem with calender

Created on 21 Jan 2019  路  6Comments  路  Source: mattlewis92/angular-calendar

  1. Can't bind to 'enableTime' since it isn't a known property of 'input'. ("
  2. Can't bind to 'convertModelValue' since it isn't a known property of 'input'. ("
  3. Can't bind to 'altInput' since it isn't a known property of 'input'. ("
  4. Can't bind to 'enableTime' since it isn't a known property of 'input'. ("
  5. Can't bind to 'convertModelValue' since it isn't a known property of 'input'. ("
    6.Can't bind to 'altInput' since it isn't a known property of 'input'. ("

I am getting above error messages while integrating angular-calender into my angular project.
please help. Thank you in advance.

All 6 comments

I ran into similar problems when I was looking to get it figured out. I got it working by using the kitchen sink demo on this page: https://mattlewis92.github.io/angular-calendar/#/kitchen-sink

To make sure you have everything good to go, look at the "module.ts" tab of the kitchen sink demo. There you can see all the module imports. Make sure those imports are properly configured on your app-module.ts file. If you're missing any of the dependencies (I was missing flatpickr and ng-bootstrap) just npm install them

@callen1994 is right, you need to add the angularx-flatpickr package (or just delete the event editor code if your app doesn't need it, it's just for the demo)

npm install --save flatpickr angularx-flatpickr
This'll work.

image
i am not getting dates to select, can any one help me

@ramkumar-siriyala same thing happening here. Any workaround that you found?

@ramkumar-siriyala I found a work around

Just enable the date using range in the <input/> tag of template.html where the code resides for picking date

<input class="form-control" type="text" mwlFlatpickr [enable]="[{ from: '2020-04-01', to: '2030-05-01' }]" [(ngModel)]="event.end" (ngModelChange)="refresh.next()" [altInput]="true" [convertModelValue]="true" [enableTime]="true" dateFormat="Y-m-dTH:i" altFormat="F j, Y H:i" placeholder="Not set" />

Reference https://flatpickr.js.org/options/

Was this page helpful?
0 / 5 - 0 ratings