-
Notifications
You must be signed in to change notification settings - Fork 54
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
Events can't be added from api call #26
Comments
Never mind it takes a second for the watch to work on events. After that works perfectly, thanks for this calendar. |
do you have a solution how to add events later manually? |
@ta4kazzz, sorry to bother you, but can you explain how you managed to add events after the $scope.events is created? |
@ta4kazzz, I don't know if I've done it the better way (I'm not very experienced in AngularJS), but I think I solved it.
|
@arturmoreira @ta4kazzz
|
$scope.events=[]; Do an api call here and initialize a temporary array first tempList.push({ This should work because the watch doesn't work if you do push to scope.events directly but worked for me on a full list assignment (don't know why) . |
I have found the problem in the source code and provided a pull request #27 |
If the $scope.events object is created later on, you can't add it to the calendar witch is already initialized
The text was updated successfully, but these errors were encountered: