ConvertToAction - best practice? (or leave listener in component)
I have a question regarding listeners, controllers and events. I like the way that in articles such as this:
you have a listener function in (for example) a view which uses fireEvent to fire an event which you have in the Controller. This make sense to me and I think makes the application easy to understand.
However, using Architect, its possible to use the ConvertToAction option which REMOVES the listener code from view completely and moves it up into the controller. What is considered best practice - to have listeners down at the component level calling events in the Controller like you have done in the article or to do what “Convert To Action” does and remove the listener code?
Sorry if I haven’t worded this particularly well but I am very new to Sencha Touch.