-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing functions #68
Comments
What version of angular / this library are you using? What build tool (system, webpack, rollup etc)
|
Thanks for the quick reply angular 2.0.0/angular2-calendar 0.3.2 and webpack from https://github.com/angular/universal-starter "@angular/common": "2.0.0", |
That's odd, I'm using webpack2 in my project as well and not had any problems using this lib. I will try and integrate it into the universal started tomorrow and see what's going on.
|
Cheers Matt, Like I said, I think I'm just missing a reference to something but can't seem to figure out what! :-/ |
Ah figured out what the problem was, you need to pass in the required attributes Putting this in your controller should work, assuming you're using the demo source
|
Nope still doesn't seem to work; including my component for reference (taken pretty much from the demo component):
and schedule.html:
|
If you put {{ viewDate }} and {{ events }} in your template does it display both items? |
yup |
@wallaceiam please try updating to 0.3.3, there was a bug with the UMD build which should now be fixed 😄 |
Updated to 0.3.3 and boom started working. Thanks Matt! |
Great to hear! 😄 |
Hi, |
Hi,
I'm trying to get the demo code to work in my own project but am running into a few missing functions which can't seem to determine what I'm missing
packages.json has:
"angular2-calendar": "0.3.2",
"calendar-utils": "0.0.30",
"date-fns": "^1.3.0",
"@types/date-fns": "0.0.2"
For Month view:
index.js:15070 TypeError: Cannot read property 'rowOffsets' of undefined
at AppView._View_CalendarMonthViewComponent0.detectChangesInternal (CalendarMonthViewComponent.ngfactory.js:80)
at AppView.detectChanges (index.js:21168)
at AppView.detectViewChildrenChanges (index.js:21194)
at AppView._View_Schedule2.detectChangesInternal (Schedule.ngfactory.js:488)
...
For Week View:
index.js:15070 TypeError: start_of_week_1.default is not a function
at Object.exports.getWeekViewHeader (index.js:76032)
at CalendarWeekViewComponent.refreshHeader (index.js:75084)
at CalendarWeekViewComponent.ngOnChanges (index.js:75072)
at AppView._View_Schedule2.detectChangesInternal (Schedule.ngfactory.js:461)
...
For Day View:
index.js:15070TypeError: Cannot read property 'allDayEvents' of undefined
at AppView._View_CalendarDayViewComponent0.detectChangesInternal (CalendarDayViewComponent.ngfactory.js:79)
at AppView.detectChanges (index.js:21168)
at AppView.detectViewChildrenChanges (index.js:21194)
at AppView._View_Schedule4.detectChangesInternal (Schedule.ngfactory.js:620)
...
Any help would be greatly appreciated!
Thanks
The text was updated successfully, but these errors were encountered: