I have been making a simple todo list as a way to learn polymer dart. Here is my todo example. I have limited experience in web-programming in general. My idea is to create a simple app with
- One text input
- 2 Custom ul elements (New task ul and Done task ul)
- Entering a string in text input and pressing enter creates a li item which is added to New task.
- Deleting an element from New task results in addition of element to Done task.
- Now I know creating a separate model and tracking the changes in an observable list seperate from html might be better approach. But as a learning exercise I would like to create a custom ul which fires a on-added and on-removed event when li item are added and removed from it respectively.
Now I have a couple of questions.
Why is there no on-added or on-remove event in ul (html)? I would like to understand what is the rational behind it.
How would one go about creating a custom UListElement which fires on-added and on-removed event when li items are added or removed from it respectively?