Need to use model object in Application view
Hi Guys,
I am very new to robot legs , I want to use the model object in my
application view ?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by krasimir on 28 Nov, 2011 07:51 AM
Hello vicky,
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:
1) the model dispatches an event. The payload of this event is the needed data.
2) the mediator of the view listen for that event and pass what is needed to the view
You can of course inject your model into your mediator, but my opinion is that it is better to transfer the data through event.
Ondina D.F. closed this discussion on 23 Dec, 2011 09:05 AM.