question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eventsModel binding is not working properly on array push

See original GitHub issue

If I push a new event to this.events the calendar view is not updated.

However the view is updated if replace the whole collection of events with different events.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
irustmcommented, Mar 12, 2018

@dorthrithil , It will be in the next release

0reactions
irustmcommented, Sep 12, 2018

because only set [eventsModel] https://github.com/Jamaks/ng-fullcalendar/blob/master/src/lib/src/calendar.component.ts#L21

What do you mean by “because only set [eventsModel]?” How do I implement that?

in html

<ng-fullcalendar [(eventSource)]="events"> <ng-fullcalendar>

In ts


clear() {
    this.events = [];
}
update() {
    this.events = [
      {
        // new events
      }
   ];
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

eventsModel binding is not working properly on array push #59
If I push a new event to this.events the calendar view is not updated. However the view is updated if replace the whole...
Read more >
Losing two-way binding when pushing to array inside form ...
That's weird - your reasoning seems to be fine. I've tried to recreate it, and it does work for me: plnkr.co/edit/tQKUCK3rGqFupcJmgfdT?p=preview ...
Read more >
Backbone.js
Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable ...
Read more >
Array.prototype.push() - JavaScript - MDN Web Docs
The push() method adds one or more elements to the end of an array and returns the new length of the array.
Read more >
Array push not working properly!! - ServiceNow Community
Solved: Hi Team, Below is my script include and catalog clien script code: catalog clien script function onChange(control, oldValue, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found