It's pretty typical for apps to keep track of when a user
makes a change to an item, then prompt the user if he tries to
navigate away without saving.
I have a form with about 20 data items. I want the parent
form to watch for any changes made to its children. I don't want to
add a change event listener for every form item. It looks like my
change events should bubble to the parent container, but I haven't
been able to get it working. Any help?
Best practices method would be to have the form as a separate
component, and have it listen for any changes made by the user,
have it decide whether the form has been changed enough to notify
the parent (or controller etc) and dispatch an event. So the parent
would listen for only one event, but the form itself has to know
what to do with it's 20 items, and when to notify other