angular-tags icon indicating copy to clipboard operation
angular-tags copied to clipboard

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

Open ot-dev opened this issue 12 years ago • 1 comments
trafficstars

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?

ot-dev avatar Oct 25 '13 14:10 ot-dev

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.

LuizPanariello avatar Jan 19 '15 19:01 LuizPanariello