-
Notifications
You must be signed in to change notification settings - Fork 1.8k
on-remove and on-select should fire AFTER addition/removal of the item. #463
Comments
@gotenxds thanks for your explanation - to expedite the process you could consider posting a Plunkr test case that demonstrates the problem. |
$timeout(function(){ctrl.onSelectCallback($scope, { |
I've moved the callback at the referenced commit for the |
Hi, here I made a plunker test: http://plnkr.co/edit/5czQ6iNn4dVMCcVf9ALr?p=preview on-remove alerts the length on the list. |
Thanks @gotenxds. Some more critical bugs have kept me busy and I'm busy at my day job right now. Feel free to open a PR that fixes this. The short explanation is that the callback is firing after the |
+1 |
workaround is to use $timeout with 100 ms |
I think this is fixed now, but it would be great if someone else could confirm. |
Resolved by #501 |
how to get only ID and post in database |
I have a list of entities, each entity has a list of items, those items are the ones I'm displaying to the user in multiple mode.
When the user removes or adds and item to the list the on-action event fires, but it fires before the removal\addition of the item from the list, so I can not send my entity for update in the DB.
Side note: This will also compliment the way ui-grid works on edit.
Example to what I mean:
html:
script (pseudo code):
The text was updated successfully, but these errors were encountered: