delete elements event #795
-
Thank you for all your help. I want an elements count( I implement this inner How do I get elements after deletion? |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Mar 24, 2023
Replies: 1 comment 1 reply
-
You could use a simple watcher to track the count of your elements. watch(getElements, (newEls, oldEls) => {
if (newEls.length !== oldEls.length && newEls.length < oldEls.length) {
console.log('some element was deleted')
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bcakmakoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use a simple watcher to track the count of your elements.