Question
Cairngorm updating the view based on the model
I have an ArrayCollection in my model which represents what the view should show, when I update that array collection, a listener to that array collection does the actual UI component changes.
At present, my listener code is in my view mxml files, and it listens for changes in an array collection (add, update, delete etc.) and modifies the view accordingly.
Is the view the appropriate place to have the code for this?
Also, what is the best way to go about modifying the view when your view is based on a complex data model where simple data binding doesn't work?
At present, my listener code is in my view mxml files, and it listens for changes in an array collection (add, update, delete etc.) and modifies the view accordingly.
Is the view the appropriate place to have the code for this?
Also, what is the best way to go about modifying the view when your view is based on a complex data model where simple data binding doesn't work?
