Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Created February 13, 2011 02:27
Show Gist options
  • Save gmoeck/824363 to your computer and use it in GitHub Desktop.
Save gmoeck/824363 to your computer and use it in GitHub Desktop.
MyApp.roomsController = SC.ArrayController.create({
contentBinding: 'ClientWasp.userController.rooms',
});
@ahawkins
Copy link

where the user controller's content binding is something like this:

// where the login is set
MyApp.userController.set('contentBinding, theLoggedInUser);

@gmoeck
Copy link
Author

gmoeck commented Feb 13, 2011

The user controller would be set like this:
MyApp.userController.set('content', theLoggedInUser);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment