Skip to content
This repository has been archived by the owner on Aug 24, 2017. It is now read-only.

decipher.tags.added event emitted before model is actually bound #19

Open
ot-dev opened this issue Oct 25, 2013 · 1 comment
Open

decipher.tags.added event emitted before model is actually bound #19

ot-dev opened this issue Oct 25, 2013 · 1 comment
Assignees
Milestone

Comments

@ot-dev
Copy link

ot-dev commented Oct 25, 2013

I tried to call a function in a handler for the added event that acts upon the entire array of items in the bound model, but the item isn't actually added when the added event is called.

This causes problems. It should be called "adding" or else it should not be emitted until after the item is added. Is this not possible due to a timing issue with angular binding?

@boneskull boneskull added this to the v1.0.0 milestone May 16, 2014
@boneskull boneskull self-assigned this May 18, 2014
@LuizPanariello
Copy link

The problem is that the event is being emitted in a link function, it should be broadcast in a controller so you can use it from outside of the directive.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants