Skip to content

Instantly share code, notes, and snippets.

@brian428
Created March 31, 2010 17:39
Show Gist options
  • Save brian428/350617 to your computer and use it in GitHub Desktop.
Save brian428/350617 to your computer and use it in GitHub Desktop.
// Inject Bean Property (The property named "userCollection" from the bean named "userModel" is injected)
[Inject( source="userModel.userCollection" )]
public var users:ListCollectionView;
// Inject Bean Property with Two-Way Binding (The property named "userCollection" from the bean named "userModel" is injected)
[Bindable]
[Inject( source="userModel.userCollection", twoWay="true" )]
public var users:ListCollectionView;
// Inject by Bean Name (The bean named "userDelegate" is injected)
[Inject( "userDelegate" )]
public var delegate:GenericDelegate;
// Inject by Type (The bean implementing IUserDelegate is injected)
[Inject]
public var delegate:IUserDelegate;
// Inject Bean Property to Destination (The property "userName" in bean "userModel" is injected into this.label)
[Inject( source="userModel.userName", destination="this.label" )]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment