tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/438-need-to-use-model-object-in-application-viewRobotlegs: Discussion 2011-12-23T09:05:09Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/117092542011-11-28T07:51:02Z2011-11-28T07:51:02ZNeed to use model object in Application view <div><p>Hello vicky,</p>
<p>It is not a good practice to pass your model directly to your
view. You should use your mediator for that purpose. What I'm doing
in most of the cases:<br>
1) the model dispatches an event. The payload of this event is the
needed data.<br>
2) the mediator of the view listen for that event and pass what is
needed to the view</p>
<p>You can of course inject your model into your mediator, but my
opinion is that it is better to transfer the data through
event.</p></div>krasimir