Skip to content
This repository has been archived by the owner. It is now read-only.

vm.events issue with firebase array #491

Closed
Snookid opened this Issue Nov 12, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@Snookid
Copy link

Snookid commented Nov 12, 2016

Bug description / Feature request:

Link to minimally-working plunker that reproduces the issue (starter template: http://plnkr.co/edit/LE4F4U7AnnD3tjM9ZH4G?p=preview)

Versions

Angular: 1.5+

Calendar library: Latest?

Browser name and version: Chrome 53

I have a basic setup with the calendar but I'm hooking the events from Firebase with the use of AngularFire.

When I pass the events from Firebase with AngularFire, the directive manipulates the entire Array and deletes functions of AngularFire like $add after which all the functionalities of Firebase is lost.

Anyway, that I could manipulate the directive where it's rewriting the events passed to it?

Let's say the original Firebase Array comes in

vm.events = [
0: {startsAt: 234562343423, endsAt: 123456789, title: 'New event'},
$add: func[],
$$added: funct(),
$watch: funct(),
$save: funct(),
];

I need to pass the same array to the mwl directive as I need it to be updated live, however when I pass it to the directive, it comes out like this:

vm.events = [
0: {startsAt: 234562343423, endsAt: 123456789, title: 'New event'}
];

Any help here would be appreciated. Thanks!

@mattlewis92

This comment has been minimized.

Copy link
Owner

mattlewis92 commented Nov 13, 2016

I'm not too familiar with how angularfire works but I think this should be fixed now in 0.26.1

@Snookid

This comment has been minimized.

Copy link
Author

Snookid commented Nov 15, 2016

Great Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.