How to use "viewMap.mapPackage"

happy's Avatar

happy

15 Mar, 2011 11:31 AM

How to use "viewMap.mapPackage"????

  1. Support Staff 1 Posted by Stray on 24 Mar, 2011 12:05 PM

    Stray's Avatar

    Could you ask a more specific question?

  2. Support Staff 2 Posted by Stray on 02 May, 2011 02:50 PM

    Stray's Avatar

    Just incase anyone is coming across this - the viewMap is an alternative to the mediatorMap (you should only use one or the other), which facilitates injection into views.

    viewMap.mapPackage('com.myapp.view.screens');
    

    Would map all the classes within this package for injection. The viewMap then monitors things landing on the stage and when something from that package arrives it populates the injections that are required.

    So - mapPackage is just a short hand for mapping all the views in a package rather than mapping them individually.

    Stray

  3. Stray closed this discussion on 02 May, 2011 02:50 PM.

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